lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Friday, June 13, 2014 08:01:44 PM Rena wrote:
> That's what I've been doing for enums. I forgot all about luaL_checkoption,
> but it seems so silly to use a strcmp() loop when you can use a table.

I thought I was feeling a sense of déjà vu. Seems I was right.

Re: Converting strings to enum values (C API)
http://lua-users.org/lists/lua-l/2013-12/msg00159.html

-- 
tom <telliamed@whoopdedo.org>