Improvement to the Odin calling conventions to pass certain things by "implicit reference" (const & in C++)

This commit is contained in:
gingerBill
2019-07-27 10:20:11 +01:00
parent 540730c0be
commit f3bffb9810
3 changed files with 11 additions and 3 deletions

View File

@@ -48,7 +48,8 @@ enum EntityFlag {
EntityFlag_NotExported = 1<<14,
EntityFlag_Static = 1<<16,
// EntityFlag_Reference = 1<<17,
EntityFlag_ImplicitReference = 1<<17, // NOTE(bill): equivalent to `const &` in C++
EntityFlag_CVarArg = 1<<20,
EntityFlag_AutoCast = 1<<21,