Mark reset_all_robot_centers as used for debuggers

This commit is contained in:
Kp 2013-10-27 22:13:04 +00:00
parent 19ae39a2d4
commit 00ed0c17ff
3 changed files with 15 additions and 2 deletions

View file

@ -151,6 +151,17 @@ help:assume compiler supports __attribute__((format(printf)))
int a(char*,...)__attribute_format_printf(1,2);
int b(char*)__attribute_format_printf(1,0);
""", msg='for function __attribute__((format(printf)))')
@_custom_test
def check_attribute_used(self,context):
"""
help:assume compiler supports __attribute__((used))
"""
macro_name = '__attribute_used'
macro_value = '__attribute__((used))'
self._check_macro(context,macro_name=macro_name,macro_value=macro_value,test="""
static void a()__attribute_used;
static void a(){}
""", msg='for function __attribute__((used))')
class LazyObjectConstructor:
def __lazy_objects(self,name,source):

View file

@ -97,7 +97,8 @@ void fuelcen_reset()
}
#ifndef NDEBUG //this is sometimes called by people from the debugger
void reset_all_robot_centers()
static void reset_all_robot_centers() __attribute_used;
static void reset_all_robot_centers()
{
int i;

View file

@ -96,7 +96,8 @@ void fuelcen_reset()
}
#ifndef NDEBUG //this is sometimes called by people from the debugger
void reset_all_robot_centers()
static void reset_all_robot_centers() __attribute_used;
static void reset_all_robot_centers()
{
int i;