本文整理汇总了C++中OS_UNUSED_ARG函数的典型用法代码示例。如果您正苦于以下问题:C++ OS_UNUSED_ARG函数的具体用法?C++ OS_UNUSED_ARG怎么用?C++ OS_UNUSED_ARG使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OS_UNUSED_ARG函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: idl_typedefOpenClose
static void
idl_typedefOpenClose(
idl_scope scope,
const char *name,
idl_typeDef defSpec,
void *userData)
{
c_char spaces[20];
idl_tmplExp te;
OS_UNUSED_ARG(userData);
OS_UNUSED_ARG(userData);
if (((idl_typeSpecType(idl_typeDefRefered(defSpec)) == idl_tstruct) ||
(idl_typeSpecType(idl_typeDefRefered(defSpec)) == idl_tunion)) &&
(idl_streamsResolve(idl_streamsDefDefGet(), scope, name))) {
/* keylist defined for this typedef of struct or union */
te = idl_tmplExpNew(idlpp_macroSet);
idl_macroSetAdd(idlpp_macroSet,
idl_macroNew("namescope", idl_cxxId(idl_scopeElementName(idl_scopeCur(scope)))));
idl_macroSetAdd(idlpp_macroSet, idl_macroNew("typename", idl_cxxId(name)));
snprintf(spaces, sizeof(spaces), "%d", idlpp_indent_level*4);
idl_macroSetAdd(idlpp_macroSet, idl_macroNew("spaces", spaces));
idlpp_inStream = idl_streamInNew(idlpp_template, idlpp_macroAttrib);
idl_tmplExpProcessTmpl(te, idlpp_inStream, idl_fileCur());
idl_streamInFree(idlpp_inStream);
idl_tmplExpFree(te);
}
}
示例2: idl_unionOpen
static idl_action
idl_unionOpen(
idl_scope scope,
const char *name,
idl_typeUnion unionSpec,
void *userData)
{
c_char spaces[20];
idl_tmplExp te;
OS_UNUSED_ARG(unionSpec);
OS_UNUSED_ARG(userData);
/* QAC EXPECT 3416; No side effects here */
if (idl_streamsResolve(idl_streamsDefDefGet(), scope, name)) {
/* keylist defined for this union */
te = idl_tmplExpNew(idlpp_macroSet);
idl_macroSetAdd(idlpp_macroSet,
idl_macroNew("namescope", idl_cxxId(idl_scopeElementName(idl_scopeCur(scope)))));
idl_macroSetAdd(idlpp_macroSet, idl_macroNew("typename", idl_cxxId(name)));
idl_macroSetAdd(idlpp_macroSet, idl_macroNew("scopedtypename", idl_scopeStack(scope, "::", name)));
snprintf(spaces, sizeof(spaces), "%d", idlpp_indent_level*4);
idl_macroSetAdd(idlpp_macroSet, idl_macroNew("spaces", spaces));
idlpp_inStream = idl_streamInNew(idlpp_template, idlpp_macroAttrib);
idl_tmplExpProcessTmpl(te, idlpp_inStream, idl_fileCur());
idl_streamInFree(idlpp_inStream);
idl_tmplExpFree(te);
}
return idl_abort;
}
示例3: cmx_participantDetach
static c_ulong
cmx_participantDetach(
u_observable o,
c_ulong event,
c_voidp usrData)
{
v_serviceStateKind kind;
u_serviceManager manager;
OS_UNUSED_ARG(o);
OS_UNUSED_ARG(event);
OS_UNUSED_ARG(usrData);
if ((event & V_EVENT_SERVICESTATE_CHANGED) == V_EVENT_SERVICESTATE_CHANGED) {
if(cmx_isInitialized() == TRUE){
manager = (u_serviceManager)usrData;
if(manager != NULL){
kind = u_serviceManagerGetServiceStateKind(manager, V_SPLICED_NAME);
if ((kind != STATE_INITIALISING) && (kind != STATE_OPERATIONAL)) {
cmx_internalDetach();
u_objectFree(manager);
manager = NULL;
}
}
}
}
return event;
}
示例4: dummy_callback
static void
dummy_callback(
v_public p,
c_voidp arg)
{
OS_UNUSED_ARG(p);
OS_UNUSED_ARG(arg);
}
示例5: dds_init
int dds_init (
int argc,
char ** argv)
{
OS_UNUSED_ARG(argc);
OS_UNUSED_ARG(argv);
return 0;
}
示例6: OS_UNUSED_ARG
unsigned char
DDS::OpenSplice::ReadCondition::test_sample_states (
c_object o,
c_voidp args)
{
OS_UNUSED_ARG(o);
OS_UNUSED_ARG(args);
return true; /* state evaluation is now in the kernel. */
}
示例7: os_threadStopCallback
static int
os_threadStopCallback(
os_threadId id,
void *arg)
{
OS_UNUSED_ARG(id);
OS_UNUSED_ARG(arg);
return 0;
}
示例8: c_mmUnbind
void
c_mmUnbind(
c_mm mm,
const c_char *name)
{
assert(0);
OS_UNUSED_ARG(mm);
OS_UNUSED_ARG(name);
}
示例9: idl_moduleOpen
static idl_action
idl_moduleOpen (
idl_scope scope,
const char *name,
void *userData)
{
c_ulong streamsIndex, streamsCount;
idl_action result;
OS_UNUSED_ARG(userData);
OS_UNUSED_ARG(userData);
/* Test whether the module contains a component within the pragma streams.
* If it does not, then the module should not be generated since it will
* contain no items (which is itself illegal idl syntax).
*
* Note that we are comparing against only the streams existing within this idl
* file (idl_idlScopeStreamsList). We do not use the result of idl_keyDefDefGet()
* since this is a list of streams resulting from the preprocessed idl (which
* will include streams from other idl files that this may include).
*/
result = idl_abort;
streamsCount = os_iterLength(idl_idlScopeStreamsList);
if (streamsCount != 0) {
idl_scope moduleScope;
idl_scopeElement newElement;
/* the idl_scope parameter to this function does not yet include the scoping
* for this module itself, so create a duplicate and add this scoping to it,
* before testing whether this module contains one of the streams in this file.
*/
moduleScope = idl_scopeDup(scope);
newElement = idl_scopeElementNew(name, idl_tModule);
idl_scopePush(moduleScope, newElement);
/* Loop through the list of keys applying to this idl file and test whether
* this particular module contains one of these keys. If it does, generate
* code for the module.
*/
for (streamsIndex = 0; (streamsIndex < streamsCount) && (result == idl_abort); streamsIndex++) {
idl_scope streamsScope = os_iterObject(idl_idlScopeStreamsList, streamsIndex);
if (idl_scopeSub(moduleScope, streamsScope)) {
/* Scopes match */
result = idl_explore;
}
}
}
if (result == idl_explore) {
idl_printIndent(idlpp_indent_level);
idl_fileOutPrintf(idl_fileCur(), "module %s {\n", idl_cxxId(name));
idl_fileOutPrintf(idl_fileCur(), "\n");
idlpp_indent_level++;
}
return result;
}
示例10: os_mmfResize
os_result
os_mmfResize(
os_mmfHandle mmfHandle,
os_uint32 new_size)
{
OS_UNUSED_ARG (mmfHandle);
OS_UNUSED_ARG (new_size);
OS_REPORT(OS_INFO, "os_mmfResize", 0, "NOT IMPLEMENTED");
return os_resultUnavailable;
}
示例11: os_mmfCreateHandle
os_mmfHandle
os_mmfCreateHandle (
const char *filename,
const os_mmfAttr *mmfAttr)
{
OS_UNUSED_ARG (filename);
OS_UNUSED_ARG (mmfAttr);
OS_REPORT(OS_INFO, "os_mmfCreateHandle", 0, "NOT IMPLEMENTED");
return NULL;
}
示例12: OS_UNUSED_ARG
void
DDS::OpenSplice::DataReaderView::nlReq_notify_listener (
DDS::OpenSplice::Entity *sourceEntity,
DDS::ULong triggerMask,
void *eventData)
{
OS_UNUSED_ARG(sourceEntity);
OS_UNUSED_ARG(triggerMask);
OS_UNUSED_ARG(eventData);
}
示例13: os_signalHandlerRegisterCheckExceptionCallback
os_signalHandlerExceptionHandle
os_signalHandlerRegisterCheckExceptionCallback(
os_signalHandlerExceptionCallback callback,
void * arg)
{
OS_UNUSED_ARG(callback);
OS_UNUSED_ARG(arg);
return os_signalHandlerExceptionHandleNil;
}
示例14: os_mmfCreate
os_result
os_mmfCreate(
os_mmfHandle mmfHandle,
os_address size)
{
OS_UNUSED_ARG (mmfHandle);
OS_UNUSED_ARG (size);
OS_REPORT(OS_INFO, "os_mmfCreate", 0, "NOT IMPLEMENTED");
return os_resultUnavailable;
}
示例15: idl_moduleOpen
static idl_action
idl_moduleOpen(
idl_scope scope,
const char *name,
void *userData)
{
OS_UNUSED_ARG(scope);
OS_UNUSED_ARG(name);
OS_UNUSED_ARG(userData);
return idl_explore;
}