refine the documentation, add extra warning messages
[lunaix-os.git] / lunaix-os / arch / LConfig
index a78038fd947a8e6a2e2790e75dbe460def55c59d..e9eacee132de309e8b2131b5a1345478268f7c19 100644 (file)
@@ -8,16 +8,24 @@ def architecture_support():
 
     @flag
     def arch_x86_32() -> bool:
-        when(arch is "i386")
+        when (arch is "i386")
     
     @flag
     def arch_x86_64() -> bool:
-        when(arch is "x86_64")
+        when (arch is "x86_64")
     
     @flag
     def arch_x86() -> bool:
-        when(arch is "i386")
-        when(arch is "x86_64")
+        when (arch is "i386")
+        when (arch is "x86_64")
+
+    @flag
+    def arch_bits_64() -> bool:
+        when (arch_bits is 64)
+
+    @flag
+    def arch_bits_32() -> bool:
+        when (arch_bits is 32)
 
     @"Architecture"
     def arch() -> "i386" | "x86_64":