File type.hpp
File List > include > simplesquirrel > type.hpp
Go to the documentation of this file.
#pragma once
#ifndef SSQ_TYPE_HEADER_H
#define SSQ_TYPE_HEADER_H
#include <squirrel.h>
#if defined(SSQ_DLL) && defined(_MSC_VER)
#ifdef SSQ_EXPORTS
#define SSQ_API __declspec(dllexport)
#else
#define SSQ_API __declspec(dllimport)
#endif
#else
#define SSQ_API
#endif
namespace ssq {
enum class Type {
NULLPTR = OT_NULL,
INTEGER = OT_INTEGER,
FLOAT = OT_FLOAT,
BOOL = OT_BOOL,
STRING = OT_STRING,
TABLE = OT_TABLE,
ARRAY = OT_ARRAY,
USERDATA = OT_USERDATA,
CLOSURE = OT_CLOSURE,
NATIVECLOSURE = OT_NATIVECLOSURE,
GENERATOR = OT_GENERATOR,
USERPOINTER = OT_USERPOINTER,
THREAD = OT_THREAD,
FUNCPROTO = OT_FUNCPROTO,
CLASS = OT_CLASS,
INSTANCE = OT_INSTANCE,
WEAKREF = OT_WEAKREF,
OUTER = OT_OUTER
};
SSQ_API const char* typeToStr(Type type);
}
#endif