|Newbie questions about Pliant
Calling Pliant functions from C
|Message posted by tfleming on 2001/03/04 01:41:41
|Is there a way for C functions to call Pliant functions? I found it pretty easy to call Win32 functions from Pliant but I can't find a way to create callbacks. An example is Window's RegisterClassExA function. One of the parameters in its structure is a pointer to a function.
|Message posted by maybe Hubert Tonneau on 2001/03/04 10:02:08
|Here is a sample:
the last line returns the address of the function that you can use to call
the Pliant function from a C function.
function foo i -> j
arg Int i j
j := 0
(the_function foo Int -> Int):executable