haiku/headers/private/system/computed_asm_macros.h
Ingo Weinhold a492466dad Created new private system header computed_asm_macros.h defining the macro we
use for the asm_offsets.cpp file, so it can be reused elsewhere.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-27 14:07:05 +00:00

14 lines
342 B
C

/*
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_COMPUTED_ASM_MACROS_H
#define _SYSTEM_COMPUTED_ASM_MACROS_H
#define DEFINE_COMPUTED_ASM_MACRO(macro, value) \
asm volatile("#define " #macro " %0" : : "i" (value))
#endif /* _SYSTEM_COMPUTED_ASM_MACROS_H */