Files
Toy/source/debug.h
2022-08-06 05:59:29 +01:00

24 lines
482 B
C

#pragma once
#include "common.h"
//for processing the command line arguments
typedef struct {
bool error;
bool help;
bool version;
char* filename;
char* source;
bool verbose;
int optimize;
} Command;
extern Command command;
void initCommand(int argc, const char* argv[]);
void usageCommand(int argc, const char* argv[]);
void helpCommand(int argc, const char* argv[]);
void copyrightCommand(int argc, const char* argv[]);
void dissectBytecode(const char* tb, int size);