49 #ifndef _DYNASHELL_UTIL_H 50 #define _DYNASHELL_UTIL_H 59 #include "rnr/rnrconfig.h" 82 #define NEWSTR(s) newstr(s) 91 #define DELSTR(s) do { if( s != NULL ) { delstr(s); s = NULL; } } while(0) 100 #define DELOBJ(p) do { if( p != NULL ) { delete p; p = NULL; } } while(0) 118 if( (s != NULL) && (*s != 0) )
120 t =
new char[strlen(s)+1];
143 #endif // _DYNASHELL_UTIL_H RoadNarrows Dynamixel Bus Communications Abstract Base Class Interface.
RoadNarrows Dynamixel Servo Chain Container Base Class Interface.
void delstr(const char *s)
A safer string delete utility.
RoadNarrows Dynamixel Top-Level Package Header File.
char * newstr(const char *s)
Allocate a new duplicated string utility.