mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-08 01:47:11 +02:00
Migrated the host module to C++ exceptions as well.
Also enabled the latest C++ revision in the project. Replaced the Random library with the one provided by C++11. Implemented a simple AES256 encryption class. Various other fixes and improvements.
This commit is contained in:
@ -119,6 +119,16 @@
|
||||
#define SQMOD_VERSION_MINOR 0
|
||||
#define SQMOD_VERSION_PATCH 1
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* SQUIRREL FORWARD DECLARATIONS
|
||||
*/
|
||||
extern "C" {
|
||||
typedef struct tagSQObject SQObject;
|
||||
struct SQVM;
|
||||
typedef struct SQVM* HSQUIRRELVM;
|
||||
typedef SQObject HSQOBJECT;
|
||||
} /*extern "C"*/
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* SQRAT FORWARD DECLARATIONS
|
||||
*/
|
||||
@ -394,19 +404,38 @@ enum CmdArgType
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
enum CmdError
|
||||
{
|
||||
// The command failed for unknown reasons
|
||||
CMDERR_UNKNOWN = 0,
|
||||
// The command failed to execute because there was nothing to execute
|
||||
CMDERR_EMPTY_COMMAND,
|
||||
// The command failed to execute because the command name was invalid after processing
|
||||
CMDERR_INVALID_COMMAND,
|
||||
// The command failed to execute because there was a syntax error in the arguments
|
||||
CMDERR_SYNTAX_ERROR,
|
||||
// The command failed to execute because there was no such command
|
||||
CMDERR_UNKNOWN_COMMAND,
|
||||
// The command failed to execute because there was no callback to handle the execution
|
||||
CMDERR_MISSING_EXECUTER,
|
||||
// The command failed to execute because the invoker does not have the proper authority
|
||||
CMDERR_INSUFFICIENT_AUTH,
|
||||
// The command was unable to execute because the argument limit was not reached
|
||||
CMDERR_INCOMPLETE_ARGS,
|
||||
// The command was unable to execute because the argument limit was exceeded
|
||||
CMDERR_EXTRANEOUS_ARGS,
|
||||
// Command was unable to execute due to argument type mismatch
|
||||
CMDERR_UNSUPPORTED_ARG,
|
||||
CMDERR_EXECUTION_FAILED,
|
||||
// The command arguments contained more data than the internal buffer can handle
|
||||
CMDERR_BUFFER_OVERFLOW,
|
||||
CMDERR_MAX,
|
||||
// The command failed to complete execution due to a runtime exception
|
||||
CMDERR_EXECUTION_FAILED,
|
||||
// The command completed the execution but returned a negative result
|
||||
CMDERR_EXECUTION_ABORTED,
|
||||
// The post execution callback failed to execute due to a runtime exception
|
||||
CMDERR_POST_PROCESSING_FAILED,
|
||||
// The callback that was supposed to deal with the failure also failed due to a runtime exception
|
||||
CMDERR_UNRESOLVED_FAILURE,
|
||||
// Maximum command error identifier
|
||||
CMDERR_MAX
|
||||
};
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
Reference in New Issue
Block a user