Skip to content

Conversation

GCodergr
Copy link
Contributor

Fixed compilation errors for win32/game_of_life example.

Checklist before submitting:

  • This example has been added to .github/workflows/check.yml (for automatic testing)
  • This example compiles cleanly with flags -vet -strict-style -vet-tabs -disallow-do -warnings-as-errors
  • This example follows the core naming convention: https://github.com/odin-lang/Odin/wiki/Naming-Convention (exception can be made for ports of examples that need to match 1:1 to the original source).
  • By submitting, I understand that this example is made available under these licenses: Public Domain and Odin's BSD-3 license. Only for third-party dependencies are other licenses allowed.

@karl-zylinski
Copy link
Collaborator

Thank you. Because of the new string16 stuff, you can actually remove that L procedure and use the string constant / literal straight up: class_name := L("OdinMainClass") -> just do CLASS_NAME :: "OdinMainClass".

You can put the CLASS_NAME as a global constant since its used in few places.

Essentially any place where L is used, you can use the constant straight into the win32 procs.

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

Successfully merging this pull request may close these issues.

2 participants