[ "not-word" parse-c-type ] [ error>> no-word-error? ] must-fail-with
] with-file-vocabs
-FUNCTION: void* alien-parser-function-effect-test ( int *arg1, float arg2 ) ;
+FUNCTION: void* alien-parser-function-effect-test ( int *arg1, float arg2 )
{ ( arg1 arg2 -- void* ) } [
\ alien-parser-function-effect-test "declared-effect" word-prop
{ t } [ \ alien-parser-function-effect-test inline? ] unit-test
-FUNCTION-ALIAS: (alien-parser-function-effect-test) void* alien-parser-function-effect-test ( int *arg1, float arg2 ) ;
+FUNCTION-ALIAS: (alien-parser-function-effect-test) void* alien-parser-function-effect-test ( int *arg1, float arg2 )
{ ( arg1 arg2 -- void* ) } [
\ (alien-parser-function-effect-test) "declared-effect" word-prop
{ t } [ \ (alien-parser-function-effect-test) inline? ] unit-test
-CALLBACK: void* alien-parser-callback-effect-test ( int *arg1 float arg2 ) ;
+CALLBACK: void* alien-parser-callback-effect-test ( int *arg1 float arg2 )
{ ( arg1 arg2 -- void* ) } [
\ alien-parser-callback-effect-test "callback-effect" word-prop
scan-token "," ?tail drop
parse-pointers [ types push ] [ names push ] bi*
scan-token
- ] until drop ";" expect types names [ >array ] bi@ ;
+ ] until drop types names [ >array ] bi@ ;
: function-quot ( return library function types -- quot )
'[ _ _ _ _ alien-invoke ] ;
dup word>> +com-interface-definitions+ get-global set-at ;
: (parse-com-function) ( return name -- definition )
- ")" scan-c-args
+ scan-c-args
[ pointer: void prefix ] [ "this" prefix ] bi*
<com-function-definition> ;
SYNTAX: CUDA-FUNCTION:
scan-token [ create-word-in current-cuda-library get ] keep
- ";" scan-c-args drop define-cuda-function ;
+ scan-c-args drop define-cuda-function ;
SYNTAX: CUDA-GLOBAL:
scan-token [ create-word-in current-cuda-library get ] keep