TEMU
4.4
The Terma Emulator
StringBreakpoint.h
Go to the documentation of this file.
1
//===------------------------------------------------------------*- C++ -*-===//
2
//
3
// TEMU: The Terma Emulator
4
// (c) Terma 2022
5
//
6
//===----------------------------------------------------------------------===//
7
8
#
ifndef
TEMU_MODELS_STRING_BREAKPOINT
9
#
define
TEMU_MODELS_STRING_BREAKPOINT
10
11
#
include
<
stdint
.
h
>
12
#
include
"temu-c/Support/Objsys.h"
13
14
#
ifdef
__cplusplus
15
extern
"C"
{
16
#
endif
17
18
/*!
19
Simple interface to get recorded line data from e.g. the console model.
20
*/
21
22
typedef
struct
temu_StringBreakpointIface
{
23
//! print all breakpoints with their indexes
24
void
(*
printBreakpointList
)(temu_Object *Obj);
25
//! add log line to use for break
26
void
(*
addBreakpoint
)(temu_Object *Obj,
const
char
* regex);
27
//! delete breakpoint with index = idx, if idx = -1 deleate all
28
void
(*
deleteBreakpoint
)(temu_Object *Obj,
int
idx);
29
} temu_StringBreakpointIface;
30
#
define
TEMU_STRING_BREAKPOINT_IFACE_TYPE
"StringBreakpointIface"
31
TEMU_IFACE_REFERENCE_TYPE(temu_StringBreakpoint);
32
33
34
#
ifdef
__cplusplus
35
}
36
#
endif
37
38
#
endif
/* ! TEMU_MODELS_STRING_BREAKPOINT */
temu_StringBreakpointIface::addBreakpoint
void(* addBreakpoint)(temu_Object *Obj, const char *regex)
add log line to use for break
Definition:
StringBreakpoint.h:26
temu_StringBreakpointIface::deleteBreakpoint
void(* deleteBreakpoint)(temu_Object *Obj, int idx)
delete breakpoint with index = idx, if idx = -1 deleate all
Definition:
StringBreakpoint.h:28
temu_StringBreakpointIface
Definition:
StringBreakpoint.h:22
temu_StringBreakpointIface::printBreakpointList
void(* printBreakpointList)(temu_Object *Obj)
print all breakpoints with their indexes
Definition:
StringBreakpoint.h:24
temu-c
Support
StringBreakpoint.h
Generated by
1.8.17