mirror of
https://github.com/janet-lang/janet
synced 2025-06-28 08:03:00 +00:00
Add debug functions to janet.h
Update version to 0.2.0 for next release. Fix whitespace in build_win.bat
This commit is contained in:
parent
b2146a4c1d
commit
fb6dd2c83f
@ -43,13 +43,13 @@ mkdir build\mainclient
|
|||||||
|
|
||||||
@rem Build the sources
|
@rem Build the sources
|
||||||
for %%f in (src\core\*.c) do (
|
for %%f in (src\core\*.c) do (
|
||||||
@%JANET_COMPILE% /Fobuild\core\%%~nf.obj %%f
|
@%JANET_COMPILE% /Fobuild\core\%%~nf.obj %%f
|
||||||
@if errorlevel 1 goto :BUILDFAIL
|
@if errorlevel 1 goto :BUILDFAIL
|
||||||
)
|
)
|
||||||
|
|
||||||
@rem Build the main client
|
@rem Build the main client
|
||||||
for %%f in (src\mainclient\*.c) do (
|
for %%f in (src\mainclient\*.c) do (
|
||||||
@%JANET_COMPILE% /Fobuild\mainclient\%%~nf.obj %%f
|
@%JANET_COMPILE% /Fobuild\mainclient\%%~nf.obj %%f
|
||||||
@if errorlevel 1 goto :BUILDFAIL
|
@if errorlevel 1 goto :BUILDFAIL
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -85,8 +85,8 @@ exit /b 0
|
|||||||
@rem Run tests
|
@rem Run tests
|
||||||
:TEST
|
:TEST
|
||||||
for %%f in (test/suite*.janet) do (
|
for %%f in (test/suite*.janet) do (
|
||||||
janet.exe test\%%f
|
janet.exe test\%%f
|
||||||
@if errorlevel 1 goto :TESTFAIL
|
@if errorlevel 1 goto :TESTFAIL
|
||||||
)
|
)
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ extern "C" {
|
|||||||
|
|
||||||
/***** START SECTION CONFIG *****/
|
/***** START SECTION CONFIG *****/
|
||||||
|
|
||||||
#define JANET_VERSION "0.1.0"
|
#define JANET_VERSION "0.2.0"
|
||||||
|
|
||||||
#ifndef JANET_BUILD
|
#ifndef JANET_BUILD
|
||||||
#define JANET_BUILD "local"
|
#define JANET_BUILD "local"
|
||||||
@ -938,6 +938,13 @@ JANET_API Janet janet_scan_number(const uint8_t *src, int32_t len);
|
|||||||
JANET_API int32_t janet_scan_integer(const uint8_t *str, int32_t len, int *err);
|
JANET_API int32_t janet_scan_integer(const uint8_t *str, int32_t len, int *err);
|
||||||
JANET_API double janet_scan_real(const uint8_t *str, int32_t len, int *err);
|
JANET_API double janet_scan_real(const uint8_t *str, int32_t len, int *err);
|
||||||
|
|
||||||
|
/* Debugging */
|
||||||
|
JANET_API int janet_debug_break(JanetFuncDef *def, int32_t pc);
|
||||||
|
JANET_API int janet_debug_unbreak(JanetFuncDef *def, int32_t pc);
|
||||||
|
JANET_API int janet_debug_find(
|
||||||
|
JanetFuncDef **def_out, int32_t *pc_out,
|
||||||
|
const uint8_t *source, int32_t offset);
|
||||||
|
|
||||||
/* Array functions */
|
/* Array functions */
|
||||||
JANET_API JanetArray *janet_array(int32_t capacity);
|
JANET_API JanetArray *janet_array(int32_t capacity);
|
||||||
JANET_API JanetArray *janet_array_n(const Janet *elements, int32_t n);
|
JANET_API JanetArray *janet_array_n(const Janet *elements, int32_t n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user