Crossfire Server, Trunk
perf_tests.cpp File Reference
#include <stdlib.h>
#include <global.h>
#include <sproto.h>
#include <array>
+ Include dependency graph for perf_tests.cpp:

Go to the source code of this file.

Functions

int legacy_monster_stand_in_light (object *op)
 
int main (int argc, const char **argv)
 
void test_stand_in_light ()
 

Variables

int testCount = 0
 
constexpr int TestSize = 20
 

Function Documentation

◆ legacy_monster_stand_in_light()

int legacy_monster_stand_in_light ( object op)

Definition at line 36 of file perf_tests.cpp.

References get_map_flags(), GET_MAP_LIGHT, ihypot(), m, MAX_LIGHT_RADII, give::op, P_OUT_OF_MAP, diamondslots::x, and diamondslots::y.

Referenced by test_stand_in_light().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
const char **  argv 
)

Definition at line 111 of file perf_tests.cpp.

References test_stand_in_light(), and testCount.

+ Here is the call graph for this function:

◆ test_stand_in_light()

void test_stand_in_light ( )

Variable Documentation

◆ testCount

int testCount = 0

Definition at line 34 of file perf_tests.cpp.

Referenced by main(), and test_stand_in_light().

◆ TestSize

constexpr int TestSize = 20
constexpr

Definition at line 33 of file perf_tests.cpp.

Referenced by test_stand_in_light().