We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found out that calling sizeof for any enum struct within a member function of that enum struct always returns 0.
sizeof
0
enum struct STest { int mSample; int GetSize() { return sizeof(STest); } } public void OnPluginStart() { STest test; test.GetSize(); // 0 }
SourcePawn Compiler 1.10.0.6502
Is this accepted?
The text was updated successfully, but these errors were encountered:
Enum structs / methodmaps don't currently "exist" until they're fully parsed, so this is the expected behaviour, but not great behaviour.
See also: #230
Sorry, something went wrong.
Error if using sizeof() without full parsing information.
6c5127b
This error will go away if we can remove the two-pass parsing scheme. Bug: #559 Test: new compile-only test
e10255a
Thanks, this has been fixed on master.
No branches or pull requests
I found out that calling
sizeof
for any enum struct within a member function of that enum struct always returns0
.SourcePawn Compiler 1.10.0.6502
Is this accepted?
The text was updated successfully, but these errors were encountered: