[PATCH] Add doImport and natuSharedDir
Export this patch
---
natu/private/common.nim | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/natu/private/common.nim b/natu/private/common.nim
index b72bc6c..2dcebab 100644
--- a/natu/private/common.nim
+++ b/natu/private/common.nim
@@ -8,9 +8,14 @@ const natuPlatform* {.strdefine.} = "gba"
const natuOutputDir* {.strdefine.} = ""
const natuConfigDir* {.strdefine.} = ""
+const natuSharedDir* {.strdefine.} = ""
when natuOutputDir == "": {.error: "natuOutputDir is not set.".}
when natuConfigDir == "": {.error: "natuConfigDir is not set.".}
+when natuSharedDir == "": {.error: "natuSharedDir is not set.".}
template doInclude*(path: static string) =
include `path`
+
+template doImport*(path: static string) =
+ import `path`
--
2.31.1