[ooc-compiler] Handling C "in" parameters
Brought to you by:
mva
|
From: August <fus...@co...> - 2005-02-17 22:26:01
|
Hello all, In my program I want to use some functionality from the SDL (Simple Directmedia Layer) C library. The API contains the function: int SDL_PollEvent(SDL_Event *event) where `SDL_Event' is a union type. In the interface file I have the definitions: EventPtr* = POINTER TO Event; Event* = RECORD [UNION] ... END; PROCEDURE ["SDL_PollEvent"] PollEvent*(event: EventPtr): C.int; If the client code contains: event: EventPtr ... NEW(event) I get an error about `_td_Sdl__EventPtr' being undeclared. How do I use/port this function? -- August |