1 2 3 4 5 6 7 8 9
#ifndef LOCK_H #define LOCK_H hidden void __lock(volatile int *); hidden void __unlock(volatile int *); #define LOCK(x) __lock(x) #define UNLOCK(x) __unlock(x) #endif