Skip to content

Instantly share code, notes, and snippets.

@nilium
Created June 3, 2009 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilium/122761 to your computer and use it in GitHub Desktop.
Save nilium/122761 to your computer and use it in GitHub Desktop.
Function script_binor:Int(lvm:Byte Ptr)
Local result:Int = 0
While lua_gettop(lvm)
result :| lua_tointeger(lvm, -1)
lua_settop(lvm,-2)
Wend
lua_pushinteger(lvm, result)
Return 1
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment