mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 04:37:47 +08:00
![Thakee Nathees](/assets/img/avatar_default.png)
now it's easier to re-use cli modules into another hosting application and a little python script have added to generate native api to support native extension library.
33 lines
855 B
C
33 lines
855 B
C
/*
|
|
* Copyright (c) 2020-2022 Thakee Nathees
|
|
* Copyright (c) 2021-2022 Pocketlang Contributors
|
|
* Distributed Under The MIT License
|
|
*/
|
|
|
|
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
|
|
#include <pocketlang.h>
|
|
|
|
#include <assert.h>
|
|
#include <errno.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
#include "modules/common.h"
|
|
|
|
#define CLI_NOTICE \
|
|
"PocketLang " PK_VERSION_STRING " (https://github.com/ThakeeNathees/pocketlang/)\n" \
|
|
"Copyright (c) 2020 - 2021 ThakeeNathees\n" \
|
|
"Copyright (c) 2021-2022 Pocketlang Contributors\n" \
|
|
"Free and open source software under the terms of the MIT license.\n"
|
|
|
|
// FIXME: the vm user data of cli.
|
|
typedef struct {
|
|
bool repl_mode;
|
|
} VmUserData;
|
|
|
|
#endif // COMMON_H
|