Toot

Written by Stefan Reinalter on 2025-01-24 at 13:46

  1. Store your localized text in a file that can be included by the C++ compiler as well

  1. Use sizeof(printf()) and a bit of macro magic

  1. Get the compiler to check format specifiers in all strings, including localizations

  1. Profit!

[#]cpp #hack

=> View attached media | View attached media

=> More informations about this toot | View the thread | More toots from molecularmusing@mastodon.gamedev.place

Mentions

Tags

=> View cpp tag | View hack tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113883638296399918
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
219.58856 milliseconds
Gemini-to-HTML Time
0.561614 milliseconds

This content has been proxied by September (3851b).