Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#define ⇒ enum? #32

Closed
elfring opened this issue Aug 31, 2013 · 1 comment
Closed

#define ⇒ enum? #32

elfring opened this issue Aug 31, 2013 · 1 comment

Comments

@elfring
Copy link

elfring commented Aug 31, 2013

Would you like to replace more defines for constant values by enumerations to stress their relationships?

@cloudwu
Copy link
Owner

cloudwu commented Aug 31, 2013

I don't like define enum type in public API.
LUA_T* in lua.h are also macros rather than enums.
Errnos are defined by #defines too.
Or SEEK_SET in fseek() , etc.

And we should know the exactly value of these , because we may use these in lua source , too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants