feisty meow concerns codebase  2.140
test_state_machine.cpp File Reference
Include dependency graph for test_state_machine.cpp:

Go to the source code of this file.

Macros

#define LOG(s)   CLASS_EMERGENCY_LOG(program_wide_logger::get(), astring(s))
 
#define TEST(action)
 

Enumerations

enum  recognizer_states {
  GET_ANY = 1 , GOT_DOT , GOT_CHO , RECOGNIZED ,
  REJECTED
}
 

Functions

astring state_text (recognizer_states to_show)
 

Macro Definition Documentation

◆ LOG

#define LOG (   s)    CLASS_EMERGENCY_LOG(program_wide_logger::get(), astring(s))

Definition at line 52 of file test_state_machine.cpp.

◆ TEST

#define TEST (   action)
Value:
if (!action) \
deadly_error(class_name(), "setup", a_sprintf("failed on %s", #action))
a_sprintf is a specialization of astring that provides printf style support.
Definition: astring.h:440

Definition at line 83 of file test_state_machine.cpp.

Enumeration Type Documentation

◆ recognizer_states

Enumerator
GET_ANY 
GOT_DOT 
GOT_CHO 
RECOGNIZED 
REJECTED 

Definition at line 56 of file test_state_machine.cpp.

Function Documentation

◆ state_text()

astring state_text ( recognizer_states  to_show)

Definition at line 71 of file test_state_machine.cpp.

References GET_ANY, GOT_CHO, GOT_DOT, RECOGNIZED, and REJECTED.