Repository navigation
Add EXT_abort - #317
Add EXT_abort#317r-potter wants to merge 2 commits into
Conversation
|
Can this be merged? It's already implemented in glslang. |
|
One grammar question: like So: what is actually intended here? I would like to know so that so that the grammar I have proposed in Also, minor typo: "Last Modified Date" mentions "September 31, 2024", even though September has only 30 days. |
|
I think you're right that there is a missing edit to the grammar, that |
|
Wasn't this okay to merge now? |
|
It should be, yes. It was blocked on the literal string question, but I implemented that for both debug printf and abort |
|
There are no grammar productions listed yet, is that intentional? As-is there's still no grammar rule to enable passing a literal string as an argument to a function. |
|
I would suggest something like this. If that is considered unnecessary if the existence of such a rule can be inferred from the prose, then never mind. |
|
I would have no objections to doing this, although if we do then we should probably also do so for printf. @gnl21 @jeffbolznv Do you have opinions on this one? |
|
I agree that it would good to add something like @rdb suggests. I was expecting to see something like that in response to Jeff's comment. |
|
Since we now have 3 extensions that need the same thing, maybe we should update the core grammar with this so that all the extensions can refer to it. I think (but I'd have to check) that this wouldn't be a problem for the unextended spec if STRING_LITERAL were unconditionally banned. |
| implementation. | ||
| The set of format specifiers is implementation-dependent, but must | ||
| include at least "%d" and "%i" (int), "%u" (uint), and "%f" (float). | ||
|
|
There was a problem hiding this comment.
Leaving this here for now, although I like @gnl21's suggestion of a core grammar rule as an alternative:
| Add the following grammar rule to chapter 9: | |
| function_call_argument: | |
| assignment_expression | |
| STRING_LITERAL | |
| Replace the "function_call_header_with_parameters" rule as follows: | |
| function_call_header_with_parameters: | |
| function_call_header function_call_argument | |
| function_call_header_with_parameters COMMA function_call_argument | |
Would the proposal here be:
Happy to make the change, just need to know exactly what we want |
|
any update on this? I forgot this wasn't merged yet |
cc @gnl21