Make a common header for attribute shorthands
This commit is contained in:
parent
648bd3fb61
commit
b8c136eeb4
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include <FormatAttribute.h>
|
||||
#include <Attributes.h>
|
||||
#include <Types.h>
|
||||
|
||||
template <typename T> class Result;
|
||||
|
6
luna/Attributes.h
Normal file
6
luna/Attributes.h
Normal file
@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#define _weak __attribute__((weak))
|
||||
#define _format(n, m) __attribute__((format(printf, n, m)))
|
||||
#define _align(x) __attribute__((aligned(x)))
|
||||
#define _noreturn __attribute__((noreturn))
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <Attributes.h>
|
||||
#include <CType.h>
|
||||
#include <FormatAttribute.h>
|
||||
#include <Result.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
#pragma once
|
||||
#define _format(n, m) __attribute__((format(printf, n, m)))
|
Loading…
Reference in New Issue
Block a user