JUCE
Loading...
Searching...
No Matches
juce_LittleFootRunner.h File Reference

Classes

struct  littlefoot::NativeFunction
 Defines a native function that the program can call. More...
 
struct  littlefoot::Program
 A reference to a block of memory which contains a complete program. More...
 
struct  littlefoot::Runner< programAndHeapSpace, stackAndGlobalsSpace >
 Loads a program, and lets the user execute its functions. More...
 
struct  littlefoot::Runner< programAndHeapSpace, stackAndGlobalsSpace >::FunctionExecutionContext
 

Namespaces

namespace  littlefoot
 

Macros

#define LITTLEFOOT_DEBUG_TRACE   0
 
#define LITTLEFOOT_DUMP_PROGRAM   0
 
#define LITTLEFOOT_OPCODES(OP, OP_INT8, OP_INT16, OP_INT32)
 
#define LITTLEFOOT_OP(name)
 
#define LITTLEFOOT_OP(name)
 
#define LITTLEFOOT_OP_INT8(name)
 
#define LITTLEFOOT_OP_INT16(name)
 
#define LITTLEFOOT_OP_INT32(name)
 
#define LITTLEFOOT_PERFORM_OP(name)
 
#define LITTLEFOOT_PERFORM_OP_INT8(name)
 
#define LITTLEFOOT_PERFORM_OP_INT16(name)
 
#define LITTLEFOOT_PERFORM_OP_INT32(name)
 

Typedefs

using littlefoot::int8 = signed char
 A platform-independent 8-bit signed integer type.
 
using littlefoot::uint8 = unsigned char
 A platform-independent 8-bit unsigned integer type.
 
using littlefoot::int16 = signed short
 A platform-independent 16-bit signed integer type.
 
using littlefoot::uint16 = unsigned short
 A platform-independent 16-bit unsigned integer type.
 
using littlefoot::int32 = signed int
 A platform-independent 32-bit signed integer type.
 
using littlefoot::uint32 = unsigned int
 A platform-independent 32-bit unsigned integer type.
 
using littlefoot::FunctionID = int16
 

Enumerations

enum class  littlefoot::OpCode : uint8 { littlefoot::LITTLEFOOT_OP , littlefoot::endOfOpcodes }
 
enum class  littlefoot::Type : uint8 { littlefoot::void_ = 'v' , littlefoot::int_ = 'i' , littlefoot::bool_ = 'b' , littlefoot::float_ = 'f' }
 Available value types. More...
 

Variables

const int littlefoot::numBytesInType = 4
 

Macro Definition Documentation

◆ LITTLEFOOT_DEBUG_TRACE

#define LITTLEFOOT_DEBUG_TRACE   0

◆ LITTLEFOOT_DUMP_PROGRAM

#define LITTLEFOOT_DUMP_PROGRAM   0

◆ LITTLEFOOT_OPCODES

◆ LITTLEFOOT_OP [1/2]

#define LITTLEFOOT_OP ( name)
Value:
name,

◆ LITTLEFOOT_OP [2/2]

#define LITTLEFOOT_OP ( name)
Value:
case OpCode::name: return 0;

◆ LITTLEFOOT_OP_INT8

#define LITTLEFOOT_OP_INT8 ( name)
Value:
case OpCode::name: return 1;

Referenced by littlefoot::Program::getNumExtraBytesForOpcode().

◆ LITTLEFOOT_OP_INT16

#define LITTLEFOOT_OP_INT16 ( name)
Value:
case OpCode::name: return 2;

Referenced by littlefoot::Program::getNumExtraBytesForOpcode().

◆ LITTLEFOOT_OP_INT32

#define LITTLEFOOT_OP_INT32 ( name)
Value:
case OpCode::name: return 4;

Referenced by littlefoot::Program::getNumExtraBytesForOpcode().

◆ LITTLEFOOT_PERFORM_OP

#define LITTLEFOOT_PERFORM_OP ( name)

◆ LITTLEFOOT_PERFORM_OP_INT8

#define LITTLEFOOT_PERFORM_OP_INT8 ( name)
Value:
case OpCode::name: name ((int8) *programCounter++); break;

Referenced by littlefoot::Runner< programAndHeapSpace, stackAndGlobalsSpace >::FunctionExecutionContext::run().

◆ LITTLEFOOT_PERFORM_OP_INT16

#define LITTLEFOOT_PERFORM_OP_INT16 ( name)
Value:
case OpCode::name: name (readProgram16()); break;

Referenced by littlefoot::Runner< programAndHeapSpace, stackAndGlobalsSpace >::FunctionExecutionContext::run().

◆ LITTLEFOOT_PERFORM_OP_INT32

#define LITTLEFOOT_PERFORM_OP_INT32 ( name)
Value:
case OpCode::name: name (readProgram32()); break;

Referenced by littlefoot::Runner< programAndHeapSpace, stackAndGlobalsSpace >::FunctionExecutionContext::run().