-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
) * fix ctlrender's main function finding function on Windows, fixes ampas#111 * check for both forward and backslash in win32 * add test using functionname_is_filename.ctl * add improved error handling when correct function name cannot be found * add a test that checks ctlrender fails when a ctl module does not contain a function name that is either main or the same as the module name * add incorrect_function_name.ctl Co-authored-by: michaeldsmith <[email protected]>
- Loading branch information
1 parent
c362379
commit b23d48e
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
void functionname_is_filename | ||
(output varying half rOut, | ||
output varying half gOut, | ||
output varying half bOut, | ||
input varying half rIn, | ||
input varying half gIn, | ||
input varying half bIn) | ||
{ | ||
rOut=rIn; | ||
gOut=gIn; | ||
bOut=bIn; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
void bad_functionname | ||
(output varying half rOut, | ||
output varying half gOut, | ||
output varying half bOut, | ||
input varying half rIn, | ||
input varying half gIn, | ||
input varying half bIn) | ||
{ | ||
rOut = rIn; | ||
gOut = gIn; | ||
bOut = bIn; | ||
} |