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
Consider the following case:
class Program { static string category = "category"; }
C code generated with a call to static constructor, which is not generated:
static struct Program_STATIC_FIELDS_DECL__ /* IL2C_STATIC_FIELDS */ { IL2C_STATIC_FIELDS* pNext__; const uint16_t objRefCount__; const uint16_t valueCount__; //-------------------- objref System_String* category; } Program_STATIC_FIELDS__ = { NULL, 1, 0 }; System_String** Program_category_HANDLER__(void) { if (il2c_unlikely__(Program_STATIC_FIELDS_initializerCount__ != *il2c_initializer_count)) { Program_STATIC_FIELDS_initializerCount__ = *il2c_initializer_count; il2c_register_static_fields(&Program_STATIC_FIELDS__); Program__cctor(); } return &Program_STATIC_FIELDS__.category; }
Thus C compiler fails with Program__cctor(); is not declared.
The text was updated successfully, but these errors were encountered:
Fix for kekyo#105, stop endless loop, fix static constructor handling k…
9091c5b
…ekyo#97, kekyo#98
Fix for #105, stop endless loop, fix static constructor handling #97, #…
2cbb6f1
…98 Cherry picked from 9091c5b
@cyborgyn Sorry for the very delay. I understood #100 work and imported it with cherry-pick. 2cbb6f1
Related #98
Sorry, something went wrong.
No branches or pull requests
Consider the following case:
C code generated with a call to static constructor, which is not generated:
Thus C compiler fails with Program__cctor(); is not declared.
The text was updated successfully, but these errors were encountered: