Browse Source

Accept void pointer declaration.

mingodad 7 years ago
parent
commit
deb98895be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SquiLu/squirrel/sqcompiler.cpp

+ 1 - 1
SquiLu/squirrel/sqcompiler.cpp

@@ -2452,7 +2452,7 @@ function_params_decl:
                 declType = _token;
                 type_name = ExpectTypeToken(); //ignore for now
             }
-            if(is_void_declaration)
+            if(is_void_declaration && !is_pointer_declaration)
             {
                 Error(_SC("void type is invalid here"));
             }