Jakob Bowyer
Jakob Bowyer

Reputation: 34698

Lua byte code, size of nil

Im reading this and developing a virtual machine, Im stuck at reading constants because I don't know howmany bytes to read if the constant is a nil. How many bytes is a nil?

Upvotes: 1

Views: 324

Answers (1)

lhf
lhf

Reputation: 72312

No bytes to be read after reading the type because the type says it all in this case. See http://www.lua.org/source/5.1/lundump.c.html#LoadConstants.

Upvotes: 4

Related Questions