import_cfunc [function]

import_cfunc( string file, string funcname )

retrieves the funcname function of the shared library file, returns success, as bool, emits a warning on failure

Do not call 'sgscript_main' using this function! That function has different return value semantics so at best, something will work, a warning could be emitted and the worst case is that something will crash.

import_cfunc( "mydll.dll", "someSGScriptFunc" )();