Fixed parsing of HLSL functions that return void.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 23 Aug 2009 01:21:43 -0400
changeset 779 160b46d02cc0
parent 778 a43d07e5da68
child 780 4a35087ba839
Fixed parsing of HLSL functions that return void.
mojoshader_parser_hlsl.lemon
--- a/mojoshader_parser_hlsl.lemon	Sun Aug 23 01:04:49 2009 -0400
+++ b/mojoshader_parser_hlsl.lemon	Sun Aug 23 01:21:43 2009 -0400
@@ -85,6 +85,7 @@
 function_signature ::= function_details.
 
 function_details ::= datatype identifier LPAREN function_arguments RPAREN.
+function_details ::= VOID identifier LPAREN function_arguments RPAREN.
 
 // !!! FIXME: there is a "target" storage class that is the name of the
 // !!! FIXME:  platform that this function is meant for...but I don't know