Parent Directory | Revision Log
Revision 1 - (view) (download)
1 : | ian | 1 | /* Core functions |
2 : | * | ||
3 : | * (c) Copyright 1998-2003, ITB CompuPhase | ||
4 : | * | ||
5 : | * This file is provided as is (no warranties). | ||
6 : | */ | ||
7 : | |||
8 : | #if defined _core_included | ||
9 : | #endinput | ||
10 : | #endif | ||
11 : | #define _core_included | ||
12 : | |||
13 : | native heapspace(); | ||
14 : | |||
15 : | native funcidx(const name[]); | ||
16 : | |||
17 : | native numargs(); | ||
18 : | native getarg(arg, index=0); | ||
19 : | native setarg(arg, index=0, value); | ||
20 : | |||
21 : | native strlen(const string[]); | ||
22 : | |||
23 : | native tolower(c); | ||
24 : | native toupper(c); | ||
25 : | native swapchars(c); | ||
26 : | |||
27 : | native random(max); | ||
28 : | |||
29 : | native min(value1, value2); | ||
30 : | native max(value1, value2); | ||
31 : | native clamp(value, min=cellmin, max=cellmax); | ||
32 : | |||
33 : | native power(value, exponent); | ||
34 : | native sqroot(value); | ||
35 : | |||
36 : | native time(&hour=0,&minute=0,&second=0); | ||
37 : | native date(&year=0,&month=0,&day=0); | ||
38 : | |||
39 : | native tickcount(&granularity=0); | ||
40 : | |||
41 : | stock abs(x) | ||
42 : | { | ||
43 : | return x > 0 ? x : -x; | ||
44 : | } |
Contact | ViewVC Help |
Powered by ViewVC 1.0.4 |