本文整理汇总了C++中rassert函数的典型用法代码示例。如果您正苦于以下问题:C++ rassert函数的具体用法?C++ rassert怎么用?C++ rassert使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rassert函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Entry_cmp
static int Entry_cmp(const Entry* e1, const Entry* e2)
{
rassert(e1 != NULL);
rassert(e1->input >= 0);
rassert(e2 != NULL);
rassert(e2->input >= 0);
return e1->input - e2->input;
}
示例2: Cgiter_clear_returned_status
void Cgiter_clear_returned_status(Cgiter* cgiter)
{
rassert(cgiter != NULL);
rassert(cgiter->row_returned);
cgiter->row_returned = false;
return;
}
示例3: Pat_table_set
bool Pat_table_set(Pat_table* table, int index, Pattern* pat)
{
rassert(table != NULL);
rassert(index >= 0);
rassert(index < table->size);
rassert(pat != NULL);
return Etable_set(table->pats, index, pat);
}
示例4: drop
// Drops a value for the given token.
void drop(token_type token) {
rassert(token < values_.size());
rassert(!is_free_[token]);
values_[token] = T();
free_.push_back(token);
#ifndef NDEBUG
is_free_[token] = true;
#endif
}
示例5: Au_state_set_voice_signal_plan
void Au_state_set_voice_signal_plan(Au_state* au_state, Voice_signal_plan* plan)
{
rassert(au_state != NULL);
rassert(plan != NULL);
del_Voice_signal_plan(au_state->voice_signal_plan);
au_state->voice_signal_plan = plan;
return;
}
示例6: Pat_table_set_existent
void Pat_table_set_existent(Pat_table* table, int index, bool existent)
{
rassert(table != NULL);
rassert(index >= 0);
rassert(index < table->size);
Bit_array_set(table->existents, index, existent);
return;
}
示例7: Module_get_track_list
const Track_list* Module_get_track_list(const Module* module)
{
rassert(module != NULL);
if (!module->album_is_existent)
return NULL;
rassert(module->track_list != NULL);
return module->track_list;
}
示例8: Module_get_au_index_from_input
static int32_t Module_get_au_index_from_input(const Module* module, int32_t input)
{
rassert(module != NULL);
rassert(input >= 0);
if (module->au_map == NULL)
return -1;
return Input_map_get_device_index(module->au_map, input);
}
示例9: Module_set_mix_vol
void Module_set_mix_vol(Module* module, double mix_vol)
{
rassert(module != NULL);
rassert(isfinite(mix_vol) || mix_vol == -INFINITY);
module->mix_vol_dB = mix_vol;
module->mix_vol = exp2(mix_vol / 6);
return;
}
示例10: Module_set_bind
void Module_set_bind(Module* module, Bind* bind)
{
rassert(module != NULL);
rassert(bind != NULL);
del_Bind(module->bind);
module->bind = bind;
return;
}
示例11: Module_set_control
void Module_set_control(Module* module, int control, bool existent)
{
rassert(module != NULL);
rassert(control >= 0);
rassert(control < KQT_CONTROLS_MAX);
Bit_array_set(module->au_controls, control, existent);
return;
}
示例12: Pat_table_remove
void Pat_table_remove(Pat_table* table, int index)
{
rassert(table != NULL);
rassert(index >= 0);
rassert(index < table->size);
Etable_remove(table->pats, index);
return;
}