Created
June 3, 2009 02:56
-
-
Save nilium/122761 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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