32 lines
863 B
C
32 lines
863 B
C
/**
|
|
* @PROJECT AerScript Interpreter
|
|
* @COPYRIGHT See COPYING in the top level directory
|
|
* @FILE modules/math/math.h
|
|
* @DESCRIPTION Mathematical class module for AerScript Interpreter
|
|
* @DEVELOPERS Symisc Systems <devel@symisc.net>
|
|
* Rafal Kupiec <belliash@codingworkshop.eu.org>
|
|
*/
|
|
#ifndef __MATH_H__
|
|
#define __MATH_H__
|
|
|
|
#include <stdlib.h>
|
|
#include <math.h>
|
|
|
|
#include "ph7.h"
|
|
#include "ph7int.h"
|
|
|
|
#define MODULE_DESC "Math Module"
|
|
#define MODULE_VER 1.0
|
|
|
|
/* MathException error codes. */
|
|
#define MATH_ERROR_NONE 0
|
|
#define MATH_ERROR_ARGUMENT_OUT_OF_RANGE 1
|
|
#define MATH_ERROR_ARGUMENT 2
|
|
#define MATH_ERROR_OVERFLOW 3
|
|
#define MATH_ERROR_ARITHMETIC 4
|
|
#define MATH_ERROR_DIVIDE_BY_ZERO 5
|
|
|
|
PH7_PRIVATE sxi32 initializeModule(ph7_vm *pVm, ph7_real *ver, SyString *desc);
|
|
|
|
#endif
|