当前位置: 首页>>代码示例>>C++>>正文


C++ set_info函数代码示例

本文整理汇总了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);
}
开发者ID:fesh0r,项目名称:mame-full,代码行数:7,代码来源:k052109.cpp

示例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)));
 }
开发者ID:Nanonid,项目名称:Javolution,代码行数:12,代码来源:throw_exception.hpp

示例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)));
 }
开发者ID:00liujj,项目名称:dealii,代码行数:13,代码来源:throw_exception.hpp

示例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)));
 }
开发者ID:Niko-r,项目名称:geofeatures,代码行数:13,代码来源:throw_exception.hpp

示例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");
	}
}
开发者ID:MASHinfo,项目名称:mame,代码行数:14,代码来源:k053244_k053245.cpp

示例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;
}
开发者ID:msva,项目名称:luazip,代码行数:7,代码来源:luazip.c

示例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;
}
开发者ID:luigiScarso,项目名称:luatexjit,代码行数:7,代码来源:luazip.c

示例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;
}
开发者ID:dvbuntu,项目名称:ogre,代码行数:36,代码来源:town.cpp

示例9: set_info

void AccountDialog::ok_acc(){
	int cur;
	if(p_val->validate(p_number->text(),cur) == QValidator::Acceptable){
		set_info();
		accept();
	}
}
开发者ID:bobbybonifacia,项目名称:MiptTelecomBalance,代码行数:7,代码来源:account_settings_dialog.cpp

示例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;
}
开发者ID:svarog2741,项目名称:xrluafix,代码行数:7,代码来源:lfs.c

示例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);
	}
}
开发者ID:phlash,项目名称:deepstripper,代码行数:9,代码来源:deepstripper-gtk.c

示例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;
}
开发者ID:heckendorfc,项目名称:netccg,代码行数:17,代码来源:cursesui.c

示例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;
}
开发者ID:clems71,项目名称:QuickNES_Core,代码行数:9,代码来源:Gzip_Extractor.cpp

示例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;
}
开发者ID:Charsi82,项目名称:lua_npp,代码行数:9,代码来源:lfs.c

示例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;
}
开发者ID:pepone42,项目名称:gngb,代码行数:9,代码来源:menu.c


注:本文中的set_info函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。