Skip to content

Commit

Permalink
[Feature]String Literal Hash Optimization
Browse files Browse the repository at this point in the history
YoYoGames/GameMaker-Bugs#2804
YoYoGames/GameMaker-Bugs#2821
* Added a note under "Struct Functions" on the Variable Functions page
  • Loading branch information
YYBartT committed Jan 23, 2024
1 parent 4fa0ae8 commit c5cde9c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ <h2 id="method_functions">Method Functions</h2>
<li><a data-xref="{title}" href="method_call.htm">method_call</a></li>
</ul>
<h2 id="struct_functions">Struct Functions</h2>
<p class="note"><span data-conref="../../../assets/snippets/Tag_note.hts"> </span> As an optimisation, the compiler replaces struct member names in these functions with their hash value when it detects that the name is a constant at compile-time.</p>
<p>The following functions are for use with structs:</p>
<ul class="colour">
<li><a data-xref="{title}" href="variable_struct_exists.htm">struct_exists</a></li>
Expand Down

0 comments on commit c5cde9c

Please sign in to comment.