Link Details

Link 92880 thumbnail
User 111696 avatar

By bloid
via cc.byexamples.com
Submitted: Jul 06 2008 / 07:21

You can’t call c function directly from Lua, you have to create a wrapper function that allows calling from Lua. In this post, shows a simple example to implement millisecond sleep function to Lua using nanosleep.
  • 2
  • 1
  • 246
  • 43

Comments

Add your comment
User 285418 avatar

Motion Control replied ago:

0 votes Vote down Vote up Reply

He means C functions but writes C++ functions.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (1)