mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-08 00:10:44 +01:00
Fix formatting.
This commit is contained in:
parent
34d44919b6
commit
47f4819213
@ -1,23 +1,23 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
// Get the start of the stubs
|
// Get the start of the stubs
|
||||||
static const void* fstubBegin[0] __attribute__((section(".data.rplFuncStubs")));
|
static const void *fstubBegin[0] __attribute__((section(".data.rplFuncStubs")));
|
||||||
|
|
||||||
#define EXPORT(name) \
|
#define EXPORT(name) \
|
||||||
extern void* name; \
|
extern void *name; \
|
||||||
const void* name##_stub __attribute__((section(".data.rplFuncStubs"))) = &name; \
|
const void *name##_stub __attribute__((section(".data.rplFuncStubs"))) = &name; \
|
||||||
|
|
||||||
#include "exports.h"
|
#include "exports.h"
|
||||||
|
|
||||||
// Get the end of the stubs
|
// Get the end of the stubs
|
||||||
static const void* fstubEnd[0] __attribute__((section(".data.rplFuncStubs")));
|
static const void *fstubEnd[0] __attribute__((section(".data.rplFuncStubs")));
|
||||||
|
|
||||||
// Create a header with the name and stub begin/end in
|
// Create a header with the name and stub begin/end in
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
const char* name;
|
const char *name;
|
||||||
const void* fstubBegin;
|
const void *fstubBegin;
|
||||||
const void* fstubEnd;
|
const void *fstubEnd;
|
||||||
} __attribute__((__packed__)) rpl_header;
|
} __attribute__((__packed__)) rpl_header;
|
||||||
|
|
||||||
static const const char name[] __attribute__((section(".rodata.rplNames"))) = LIBRARY_NAME;
|
static const const char name[] __attribute__((section(".rodata.rplNames"))) = LIBRARY_NAME;
|
||||||
|
Loading…
Reference in New Issue
Block a user