mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-28 06:11:49 -07:00
54 lines
1.0 KiB
C
54 lines
1.0 KiB
C
// Copyright (c) Epic Games Tools
|
|
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
|
|
|
#ifndef RADBIN_H
|
|
#define RADBIN_H
|
|
|
|
////////////////////////////////
|
|
//~ rjf: Generated Code
|
|
|
|
#include "radbin/generated/radbin.meta.h"
|
|
|
|
////////////////////////////////
|
|
//~ rjf: File Types
|
|
|
|
typedef U32 RB_FileFormatFlags;
|
|
enum
|
|
{
|
|
RB_FileFormatFlag_HasDWARF = (1<<0),
|
|
};
|
|
|
|
typedef struct RB_File RB_File;
|
|
struct RB_File
|
|
{
|
|
RB_FileFormat format;
|
|
RB_FileFormatFlags format_flags;
|
|
String8 path;
|
|
String8 data;
|
|
};
|
|
|
|
typedef struct RB_FileNode RB_FileNode;
|
|
struct RB_FileNode
|
|
{
|
|
RB_FileNode *next;
|
|
RB_File *v;
|
|
};
|
|
|
|
typedef struct RB_FileList RB_FileList;
|
|
struct RB_FileList
|
|
{
|
|
RB_FileNode *first;
|
|
RB_FileNode *last;
|
|
U64 count;
|
|
};
|
|
|
|
read_only global RB_File rb_file_nil = {0};
|
|
#define rb_file_list_first(list) ((list)->first ? (list)->first->v : &rb_file_nil)
|
|
|
|
////////////////////////////////
|
|
//~ rjf: Top-Level Entry Point
|
|
|
|
internal void rb_entry_point(CmdLine *cmdline);
|
|
|
|
#endif //RADBIN_H
|