本文整理汇总了C++中set_info函数的典型用法代码示例。如果您正苦于以下问题:C++ set_info函数的具体用法?C++ set_info怎么用?C++ set_info使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_info函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: set_info
void k052109_device::set_char_ram(bool ram)
{
if (ram)
set_info(gfxinfo_ram);
else
set_info(gfxinfo);
}
示例2: throw_exception_
void
throw_exception_( E const & x, char const * current_function, char const * file, int line )
{
throw_exception(
set_info(
set_info(
set_info(
enable_error_info(x),
throw_function(current_function)),
throw_file(file)),
throw_line(line)));
}
示例3: throw_exception_
BOOST_ATTRIBUTE_NORETURN
void
throw_exception_( E const & x, char const * current_function, char const * file, int line )
{
boost::throw_exception(
set_info(
set_info(
set_info(
boost::enable_error_info(x),
throw_function(current_function)),
throw_file(file)),
throw_line(line)));
}
示例4: throw_exception_
BOOST_NORETURN
void
throw_exception_( E const & x, char const * current_function, char const * file, int line )
{
geofeatures_boost::throw_exception(
set_info(
set_info(
set_info(
enable_error_info(x),
throw_function(current_function)),
throw_file(file)),
throw_line(line)));
}
示例5: switch
void k05324x_device::set_bpp(int bpp)
{
switch(bpp)
{
case 4:
set_info(gfxinfo);
break;
case 6:
set_info(gfxinfo_6bpp);
break;
default:
fatalerror("Unsupported bpp\n");
}
}
示例6: luaopen_zip
LUAZIP_API int luaopen_zip (lua_State *L) {
lua_pop(L,createmeta(L));
lua_newtable(L);
luaL_setfuncs(L, ziplib, 0);
set_info(L);
return 1;
}
示例7: luaopen_zip
LUAZIP_API int luaopen_zip (lua_State *L) {
createmeta(L);
lua_pushvalue(L, -1);
luaL_openlib(L, LUA_ZIPLIBNAME, ziplib, 1);
set_info(L);
return 1;
}
示例8: get_position
// Check if town has been captured and set new owner
// Only report if there's a change of ownership
// Maybe change to unit checks when it stops moving
OgrePlayer *OgreTown::check_conquest(std::list<OgreUnit*> units){
sf::Vector2f town_position = get_position();
OgrePlayer *possible_owner = nullptr;
OgrePlayer *unit_owner;
bool contested = false;
// step for each level of speed
for(auto unit : units){
unit_owner = unit->get_owner();
if (unit->distance<>(town_position) < TOWN_SIZE)
{
// Set new possible owner
if (possible_owner == nullptr)
possible_owner = unit_owner;
// Multiple units, don't change owner
// just comparing pointers, not actual ids...
else if (possible_owner == unit_owner)
contested = true;
break;
}
}
// set new owner and damage town
if (!contested && possible_owner != nullptr && possible_owner != get_owner())
{
set_owner(possible_owner);
pillage();
set_info(hp);
return possible_owner;
}
else
return nullptr;
}
示例9: set_info
void AccountDialog::ok_acc(){
int cur;
if(p_val->validate(p_number->text(),cur) == QValidator::Acceptable){
set_info();
accept();
}
}
示例10: luaopen_lfs
int luaopen_lfs (lua_State *L) {
dir_create_meta (L);
lock_create_meta (L);
luaL_register (L, "lfs", fslib);
set_info (L);
return 1;
}
示例11: show_project_info
// Show project info
static void show_project_info() {
char msg[160];
if (g_proj.offset) {
sprintf(msg, "Name: %s\nSize: %d (%dMiB)\nSample rate: %d\nSample size: %d\nDef Scene: %s\nOffset: 0x%08"PRIu64,
g_proj.name, g_proj.size, g_proj.size/1048576, g_proj.splrate, g_proj.splsize, g_proj.defscene.name, g_poff);
set_info(msg);
}
}
示例12: card_rule_cb
static int card_rule_cb(void *arg, int col_n, char **row, char **titles){
int *i=(int*)arg;
char *ptr,q[100];
int len;
len=strlen(row[0]);
ptr=row[0];
set_info(i,len,75,q,ptr);
len=strlen(row[1]);
ptr=row[1];
set_info(i,len,75,q,ptr);
(*i)++;
return SQLITE_OK;
}
示例13: RETURN_ERR
blargg_err_t Gzip_Extractor::stat_v()
{
RETURN_ERR( open_arc_file( true ) );
if ( !gr.opened() || gr.tell() != 0 )
RETURN_ERR( gr.open( &arc() ) );
set_info( gr.remain(), 0, gr.crc32() );
return blargg_ok;
}
示例14: luaopen_lfs
LUALIB_API int luaopen_lfs(lua_State *L) {
dir_create_meta(L);
lock_create_meta(L);
luaL_newlib(L, fslib);
lua_pushvalue(L, -1);
lua_setglobal(L, LUA_LFSLIBNAME);
set_info(L);
return 1;
}
示例15: toggle_fps
int toggle_fps(MENU_ITEM *self)
{
conf.show_fps^=1;
if (!conf.show_fps)
unset_info();
else
set_info("fps:..");
return 2;
}