mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-11 23:24:43 +00:00
0c116f5517
Many exisiting LUA scripts are using bit32 which has been removed in LUA5.4 in favor of native language support of bitwise operations. Yet, it's easier to backport this module rather than patching all the existing LUA scripts because most of them can't be tested.
26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// See LICENSE.txt for the text of the license.
|
|
//-----------------------------------------------------------------------------
|
|
// Bitwise manipulation library which got deprecated in lua5.3
|
|
//-----------------------------------------------------------------------------
|
|
#ifndef LUA_BITLIB_H__
|
|
#define LUA_BITLIB_H__
|
|
|
|
#include <lua.h>
|
|
|
|
void register_bit32_lib(lua_State *L);
|
|
|
|
#endif
|