Selaa lähdekoodia

Remove LUA panic for non-big-3 OS

Jeroen van Rijn 1 vuosi sitten
vanhempi
commit
9d6ed991cb
4 muutettua tiedostoa jossa 8 lisäystä ja 24 poistoa
  1. 2 6
      vendor/lua/5.1/lua.odin
  2. 2 6
      vendor/lua/5.2/lua.odin
  3. 2 6
      vendor/lua/5.3/lua.odin
  4. 2 6
      vendor/lua/5.4/lua.odin

+ 2 - 6
vendor/lua/5.1/lua.odin

@@ -15,20 +15,16 @@ when LUA_SHARED {
 		foreign import lib "windows/lua5.1.dll.lib"
 	} else when ODIN_OS == .Linux {
 		foreign import lib "linux/liblua5.1.so"
-	} else when ODIN_OS == .Darwin {
-		foreign import lib "system:lua5.1"
 	} else {
-		#panic("LUA import not defined for this platform")
+		foreign import lib "system:lua5.1"
 	}
 } else {
 	when ODIN_OS == .Windows {
 		foreign import lib "windows/lua5.1.dll.lib"
 	} else when ODIN_OS == .Linux {
 		foreign import lib "linux/liblua5.1.a"
-	} else when ODIN_OS == .Darwin {
-		foreign import lib "system:lua5.1"
 	} else {
-		#panic("LUA import not defined for this platform")
+		foreign import lib "system:lua5.1"
 	}
 }
 

+ 2 - 6
vendor/lua/5.2/lua.odin

@@ -15,20 +15,16 @@ when LUA_SHARED {
 		foreign import lib "windows/lua52dll.lib"
 	} else when ODIN_OS == .Linux {
 		foreign import lib "linux/liblua52.so"
-	} else when ODIN_OS == .Darwin {
-		foreign import lib "system:lua5.2"
 	} else {
-		#panic("LUA import not defined for this platform")
+		foreign import lib "system:lua5.2"
 	}
 } else {
 	when ODIN_OS == .Windows {
 		foreign import lib "windows/lua52dll.lib"
 	} else when ODIN_OS == .Linux {
 		foreign import lib "linux/liblua52.a"
-	} else when ODIN_OS == .Darwin {
-		foreign import lib "system:lua5.2"
 	} else {
-		#panic("LUA import not defined for this platform")
+		foreign import lib "system:lua5.2"
 	}
 }
 

+ 2 - 6
vendor/lua/5.3/lua.odin

@@ -15,20 +15,16 @@ when LUA_SHARED {
 		foreign import lib "windows/lua53dll.lib"
 	} else when ODIN_OS == .Linux {
 		foreign import lib "linux/liblua53.so"
-	} else when ODIN_OS == .Darwin {
-		foreign import lib "system:lua5.3"
 	} else {
-		#panic("LUA import not defined for this platform")
+		foreign import lib "system:lua5.3"
 	}
 } else {
 	when ODIN_OS == .Windows {
 		foreign import lib "windows/lua53dll.lib"
 	} else when ODIN_OS == .Linux {
 		foreign import lib "linux/liblua53.a"
-	} else when ODIN_OS == .Darwin {
-		foreign import lib "system:lua5.3"
 	} else {
-		#panic("LUA import not defined for this platform")
+		foreign import lib "system:lua5.3"
 	}
 }
 

+ 2 - 6
vendor/lua/5.4/lua.odin

@@ -15,20 +15,16 @@ when LUA_SHARED {
 		foreign import lib "windows/lua54dll.lib"
 	} else when ODIN_OS == .Linux {
 		foreign import lib "linux/liblua54.so"
-	} else when ODIN_OS == .Darwin {
-		foreign import lib "system:lua5.4"
 	} else {
-		#panic("LUA import not defined for this platform")
+		foreign import lib "system:lua5.4"
 	}
 } else {
 	when ODIN_OS == .Windows {
 		foreign import lib "windows/lua54dll.lib"
 	} else when ODIN_OS == .Linux {
 		foreign import lib "linux/liblua54.a"
-	} else when ODIN_OS == .Darwin {
-		foreign import lib "system:lua5.4"
 	} else {
-		#panic("LUA import not defined for this platform")
+		foreign import lib "system:lua5.4"
 	}
 }