Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. *Tencent is pleased to support the open source community by making xLua available.
  3. *Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
  4. *Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
  5. *http://opensource.org/licenses/MIT
  6. *Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  7. */
  8. #ifndef I64LIB_H
  9. #define I64LIB_H
  10. #include <stdint.h>
  11. #include "lua.h"
  12. #include "lauxlib.h"
  13. #include "lualib.h"
  14. #ifdef __cplusplus
  15. #if __cplusplus
  16. extern "C"{
  17. #endif
  18. #endif /* __cplusplus */
  19. LUALIB_API void lua_pushint64(lua_State* L, int64_t n);
  20. LUALIB_API void lua_pushuint64(lua_State* L, uint64_t n);
  21. LUALIB_API int lua_isint64(lua_State* L, int pos);
  22. LUALIB_API int lua_isuint64(lua_State* L, int pos);
  23. LUALIB_API int64_t lua_toint64(lua_State* L, int pos);
  24. LUALIB_API uint64_t lua_touint64(lua_State* L, int pos);
  25. #ifdef __cplusplus
  26. #if __cplusplus
  27. }
  28. #endif
  29. #endif /* __cplusplus */
  30. #endif