Просмотр исходного кода

Use #error instead of #warning

Ole Krüger лет назад: 10
Родитель
Сommit
17b852e72e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/luwra/common.h

+ 2 - 2
lib/luwra/common.h

@@ -15,8 +15,8 @@
 #include <lua.hpp>
 
 // Check for proper Lua version
-#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 503 || LUA_VERSION >= 600
-	#warning "Luwra has not been tested against your installed version of Lua"
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 503 || LUA_VERSION_NUM >= 600
+	#error "Luwra has not been tested against your installed version of Lua"
 #endif
 
 #define LUWRA_NS_BEGIN namespace luwra {