/* /\/\ __ _ _ __ __ _ ___ / _\ ___ _ __(_)_ __ | |_
* / \ / _` | '_ \ / _` |/ _ \\ \ / __| '__| | '_ \| __|
* / /\/\ \ (_| | | | | (_| | (_) |\ \ (__| | | | |_) | |_
* \/ \/\__,_|_| |_|\__, |\___/\__/\___|_| |_| .__/ \__|
* |___/ |_|
* A WHOLE NEW WORLD
* MangoScript - Bringing a whole new world to MaNGOS
*
* Lua_uin64.h - Header for Lua_uin64.cpp
*
* (c) Copyright 2006-2007 by the By the MangoScript Team <http://www.mangoscript.org>
*
* 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 2 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* $Id: Lua_uint64.h 232 2007-04-19 11:59:13Z weedy $
*/
#ifndef LUA_UINT64_H
#define LUA_UINT64_H
#include "luainc.h"
#include "Common.h"
//Adding uint64 support to lua :)
class lua_uint64
{
public:
lua_uint64();
lua_uint64(const lua_uint64& val);
lua_uint64(const uint64& val) ;//wont be exported
lua_uint64(const uint32& val); // add unit32 input support for unit64
lua_uint64(const double& val);
lua_uint64(const char* val);
void set(const char* val);
void set(lua_uint64& val);
lua_uint64& operator= (lua_uint64& val);
lua_uint64 operator+ (lua_uint64& val);
lua_uint64 operator- (lua_uint64& val);
lua_uint64 operator* (lua_uint64& val);
lua_uint64 operator/ (lua_uint64& val);
void dump();
uint64 m_val;
};
int lb_Export_uint64(lua_State* L);
#endif //LUA_UINT64_H