Hello,
I am a newbie using Nim to call GLFW functions. I have the following function in C:
static void error_callback(int error, const char* description)
{
fprintf(stderr, "Error: %s\n", description);
}
that I would like to implement in Nim. I have done the following:
proc error_callback(error: cint; description: cstring): void {.cdecl.} =
quit(EXIT_FAILURE)
Need I change anything to make this compatible with the C static declaration above? Can anyone point me to where I can read up on this?
TIA
@darkestpigeon1d Compatible in the sense of generating a Nim function that is the same as C the function (compiling and running).
@Araq Thank you . Will remove the void.