mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-30 16:30:16 +00:00
26 lines
621 B
C
26 lines
621 B
C
#pragma once
|
|
|
|
#include "pocketpy/common/str.h"
|
|
#include "pocketpy/common/strname.h"
|
|
#include "pocketpy/objects/codeobject.h"
|
|
#include "pocketpy/objects/sourcedata.h"
|
|
#include "pocketpy/objects/object.h"
|
|
#include "pocketpy/pocketpy.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct{
|
|
SourceData_ src;
|
|
int lineno;
|
|
char msg[100];
|
|
} Error;
|
|
|
|
void py_BaseException__set_lineno(py_Ref, int lineno, const CodeObject* code);
|
|
int py_BaseException__get_lineno(py_Ref, const CodeObject* code);
|
|
void py_BaseException__stpush(py_Ref, SourceData_ src, int lineno, const char* func_name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |