Add meta header and implementation for version printing
This commit is contained in:
parent
382842540a
commit
d333cdfad5
|
|
@ -7,15 +7,10 @@
|
|||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "sls/main.h"
|
||||
#include "sls/meta.h"
|
||||
#include "sls/bool.h"
|
||||
#include "sls/repl.h"
|
||||
|
||||
void print_version() {
|
||||
printf("YREA SLS (" SLS_NAME ") " SLS_VER " (" GIT_COMMIT_HASH ")\n");
|
||||
printf("Compiled with " COMPILER_NAME " %d at " __DATE__ " " __TIME__ "\n", COMPILER_VER);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
Boolean version = FALSE;
|
||||
Boolean file = FALSE;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
// Kyler Olsen
|
||||
// YREA SLS
|
||||
// MEta File
|
||||
// November 2025
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "sls/meta.h"
|
||||
|
||||
void print_version() {
|
||||
printf("YREA SLS (" SLS_NAME ") " SLS_VER " (" GIT_COMMIT_HASH ")\n");
|
||||
printf("Compiled with " COMPILER_NAME " %d at " __DATE__ " " __TIME__ "\n", COMPILER_VER);
|
||||
}
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "sls/repl.h"
|
||||
#include "sls/main.h"
|
||||
#include "sls/meta.h"
|
||||
#include "sls/errors.h"
|
||||
#include "sls/lexer.h"
|
||||
#include "sls/string.h"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include "sls/errors.h"
|
||||
#include "tests/tests.h"
|
||||
|
||||
static const Boolean PRINT_SUCCESSFUL_TESTS = TRUE;
|
||||
static const Boolean PRINT_SUCCESSFUL_TESTS = FALSE;
|
||||
|
||||
const SlsStr TEST_FILE_NAME = SLS_STR_CONST("TEST_FILE.SLS");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue