瀏覽代碼

更新 src/mysql.h

1585346868 3 月之前
父節點
當前提交
57cebfd16a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/mysql.h

+ 1 - 0
src/mysql.h

@@ -221,6 +221,7 @@ namespace module
 		virtual void regist_global(const char* name, sol::state* lua){}
 		virtual void delete_global() { delete this; }
 		virtual void self_free();
+		virtual int64_t self_ptr() { return (int64_t)this; }
 	private:
 		ylib::mysql::conn* m_conn = nullptr;
 	};