Advertisement
Meliodas0_0

Verify byte code support

Jan 12th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function verify_bytecode(arg)
  2. local bytecode = string.sub(string, 1, 1)
  3. if bytecode == "u" then
  4. return string.sub(arg, 2)
  5. elseif bytecode~ = "c" then
  6. error("Failed to verify bytecode,Lua implementation supports non-null terminated strings?")
  7. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement