瀏覽代碼

Fix a link error on Windows

Alex Szpakowski 5 年之前
父節點
當前提交
e188740c18
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/common/runtime.h

+ 2 - 2
src/common/runtime.h

@@ -355,12 +355,12 @@ void luax_rawnewtype(lua_State *L, love::Type &type, love::Object *object);
 /**
  * Stores the value at the given index on the stack into a Variant object.
  */
-Variant luax_checkvariant(lua_State *L, int idx, bool allowuserdata = true, std::set<const void*> *tableSet = nullptr);
+LOVE_EXPORT Variant luax_checkvariant(lua_State *L, int idx, bool allowuserdata = true, std::set<const void*> *tableSet = nullptr);
 
 /**
  * Pushes the contents of the given Variant index onto the stack.
  */
-void luax_pushvariant(lua_State *L, const Variant &v);
+LOVE_EXPORT void luax_pushvariant(lua_State *L, const Variant &v);
 
 /**
  * Checks whether the value at idx is a certain type.