Cthulhu
0.2.10
Cthulhu compiler collection
flex.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: LGPL-3.0-only
2
3
#pragma once
4
5
#include <ctu_interop_api.h>
6
7
#include "
base/panic.h
"
8
9
#include "
interop/actions.h
"
// IWYU pragma: export
10
12
#ifndef YY_USER_ACTION
13
# define YY_USER_ACTION flex_action(yylloc, yytext);
14
#endif
15
17
#ifndef YY_INPUT
18
# define YY_INPUT(buffer, result, size) \
19
result = flex_input(yyextra, buffer, size); \
20
if ((result) <= 0) \
21
{ \
22
(result) = YY_NULL; \
23
}
24
#endif
25
27
#ifndef YYLLOC_DEFAULT
28
# define YYLLOC_DEFAULT(current, rhs, offset) flex_update(&(current), rhs, offset)
29
#endif
30
32
#ifndef YY_USER_INIT
33
# define YY_USER_INIT flex_init(yylloc);
34
#endif
35
37
#ifndef YY_FATAL_ERROR
38
# define YY_FATAL_ERROR(msg) CT_NEVER("fatal flex error: %s"
, msg)
39
#endif
actions.h
panic.h
common
interop
include
interop
flex.h
Generated by
1.9.1