FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/src/lpython/cwrapper.h at Smit-create-patch-1 · kinshukdua/lpython · GitHub
kinshukdua
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
src
/
lpython
/
cwrapper.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (32 loc) · 1.31 KB
Breadcrumbs
lpython
/
src
/
lpython
/
cwrapper.h
Copy path
File metadata and controls
41 lines (32 loc) · 1.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef
CWRAPPER_H
#define
CWRAPPER_H
#include
<stdio.h>
#include
<stdlib.h>
#include
<libasr/config.h>
#include
<libasr/exception.h>
#ifdef
__cplusplus
extern
"C"
{
#endif
// Use LFORTRAN_C_ASSERT in C tests
#define
LFORTRAN_C_ASSERT
(
cond
) \
{ \
if (0 == (cond)) { \
printf("LFORTRAN_C_ASSERT failed: %s \nfunction %s (), line " \
"number %d at\n%s\n", \
__FILE__, __func__, __LINE__, #cond); \
abort(); \
} \
}
typedef
struct
LFortranCParser
LFortranCParser
;
typedef
struct
lfortran_ast_t
lfortran_ast_t
;
LFortranCParser
*
lfortran_parser_new
();
void
lfortran_parser_free
(
LFortranCParser
*
self
);
lfortran_exceptions_t
lfortran_parser_parse
(
LFortranCParser
*
self
,
const
char
*
input
,
lfortran_ast_t
*
*
ast
);
lfortran_exceptions_t
lfortran_parser_pickle
(
lfortran_ast_t
*
ast
,
char
*
*
str
);
lfortran_exceptions_t
lfortran_str_free
(
char
*
str
);
#ifdef
__cplusplus
}
#endif
#endif
Back
|
FazBrowse Home
|
New Git URL