148
edits
Line 9: | Line 9: | ||
<code>Library</code> objects have the following methods: | <code>Library</code> objects have the following methods: | ||
:'''<code>''lib''.declare(''name'', ''abi'', ''rtype'', ''<nowiki>[argtype1, ...]</nowiki>'')</code>''' - Declare a function. ''(TODO: all the details)'' This always returns a new function | :'''<code>''lib''.declare(''name'', ''abi'', ''rtype'', ''<nowiki>[argtype1, ...]</nowiki>'')</code>''' - Declare a function. ''(TODO: all the details)'' This always returns a new callable <code>CData</code> object representing a function pointer to ''name'', or throws an exception. | ||
:If ''rtype'' is an array type, this throws a <code>TypeError</code>. | :If ''rtype'' is an array type, this throws a <code>TypeError</code>. |
edits