alien.syntax: Fix docs for CALLBACK: (no semi)
parent
4493e2175a
commit
72be6bf9b7
|
@ -91,7 +91,7 @@ HELP: CALLBACK:
|
||||||
{ $description "Defines a new function pointer C type word " { $snippet "type" } ". The newly defined word works both as a C type and as a wrapper for " { $link alien-callback } " for callbacks that accept the given return type and parameters. The ABI of the callback is decided from the ABI of the active " { $link POSTPONE: LIBRARY: } " declaration." }
|
{ $description "Defines a new function pointer C type word " { $snippet "type" } ". The newly defined word works both as a C type and as a wrapper for " { $link alien-callback } " for callbacks that accept the given return type and parameters. The ABI of the callback is decided from the ABI of the active " { $link POSTPONE: LIBRARY: } " declaration." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $code
|
{ $code
|
||||||
"CALLBACK: bool FakeCallback ( int message, void* payload ) ;"
|
"CALLBACK: bool FakeCallback ( int message, void* payload )"
|
||||||
": MyFakeCallback ( -- alien )"
|
": MyFakeCallback ( -- alien )"
|
||||||
" [| message payload |"
|
" [| message payload |"
|
||||||
" \"message #\" write"
|
" \"message #\" write"
|
||||||
|
|
Loading…
Reference in New Issue