mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 13:15:02 +01:00
pch migration to modules [wip]
This commit is contained in:
10
utilities/translation_macros.h
Normal file
10
utilities/translation_macros.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
// Macros cannot cross a module boundary, so they live in a plain header
|
||||
// that consumers pull into their global module fragment. The bodies are
|
||||
// expanded at the use site, where the imported names are in scope, so this
|
||||
// header deliberately includes nothing.
|
||||
|
||||
#define STR(x) Translations.lookup_s(x, false)
|
||||
#define STR_C(x) Translations.lookup_c(x, true)
|
||||
#define STRN(x) x
|
||||
Reference in New Issue
Block a user