2021-12-14 15:10:03 +01:00

27 lines
683 B
C

/********************************************************************
** Copyright (c) 2018-2020 Guan Wenliang
** This file is part of the Berry default interpreter.
** skiars@qq.com, https://github.com/Skiars/berry
** See Copyright Notice in the LICENSE file or at
** https://github.com/Skiars/berry/blob/master/LICENSE
********************************************************************/
#ifndef BE_REPL_H
#define BE_REPL_H
#include "berry.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef char* (*breadline)(const char *prompt);
typedef void (*bfreeline)(char *ptr);
BERRY_API int be_repl(bvm *vm, breadline getline, bfreeline freeline);
#ifdef __cplusplus
}
#endif
#endif