summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emucore.h
Commit message (Collapse)AuthorAgeFilesLines
* emucore: Kill generic_ptr [O. Galibert] Olivier Galibert2016-11-191-16/+0
|
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-50/+60
| | | | | | | | | | | | * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-49/+49
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* [[noreturn]] instead of ATTR_NORETURN (nw) Miodrag Milanovic2016-10-221-2/+2
|
* srcclean and translation regeneration Vas Crabb2016-08-291-2/+2
|
* emucore: add template functions to deal with conversion between strongly ↵ Giuseppe Gorgoglione2016-08-241-0/+19
| | | | | | typed enums and integral types As seen in Scott Meyers' "Effective Modern C++".
* BIT doesn't need to be a macro Vas Crabb2016-08-181-1/+1
|
* Fix a comment Vas Crabb2016-08-161-1/+1
|
* check number of bits in BITSWAPnn and expand up to 64 Vas Crabb2016-08-161-4/+9
|
* replace BITSWAP8/16/24/32 macros with constexpr function that works for any ↵ Vas Crabb2016-08-161-31/+19
| | | | number of bits
* better enum increment/decrement operators: Vas Crabb2016-07-111-9/+8
| | | | | | * deduce underlying type rather than assuming int * return old value from post-increment/decrement * return reference from pre-increment/decrement
* - removed FUNC_NULL macro Miodrag Milanovic2016-07-011-1/+0
| | | | | - made emu_timer register_save properly handle timer_expired_delegate() - removed timer_expired_func and calls using it
* remove all usages of tagmap Miodrag Milanovic2016-06-181-3/+8
|
* nullptr to nullptr doesn't deserve a warning (nw) Vas Crabb2016-06-161-2/+2
|
* Fix GCC6 warnings Vas Crabb2016-06-161-32/+26
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-1/+1
|
* clang-modernize part 1 (nw) Miodrag Milanovic2015-12-031-2/+2
|
* force delete of copy constructor and operator = (nw) Miodrag Milanovic2015-12-031-2/+2
|
* License self-service. Aaron Giles2015-05-251-1/+1
| | | | | | License self-service. Mostly adding attribution where I made significant contributions. In a few cases files I previously missed were default-attributed to Nicola.
* Added some for Nathan and some more for Nicola (nw) Miodrag Milanovic2015-05-111-6/+2
|
* Added dummy license headers for EMU section (nw) Miodrag Milanovic2015-05-071-0/+2
|
* moved all to std::string (nw) Miodrag Milanovic2015-04-221-2/+0
|
* Added #include <string> in emucore.h (sorry will do a full build) Miodrag Milanovic2015-04-121-0/+1
| | | | Converted some astring to std::string (nw)
* Fix accidentally reversed #if (nw) Alex W. Jackson2015-03-311-1/+1
|
* Fix bad breakage - sorry guys Vas Crabb2015-04-011-2/+2
|
* Start removing the use of OSD macros outside OSD since core objects are ↵ Vas Crabb2015-04-011-2/+2
| | | | shared between OSD builds
* Whatever, I'll keep what I need locally, as always (nw) Olivier Galibert2015-03-211-7/+0
|
* Use the special asserts only for regression testing (nw) Olivier Galibert2015-03-201-0/+7
|
* assert_always is basically fatalerror() - so it should always bail out (nw) Oliver Stöneberg2015-03-201-1/+1
|
* moved assert replacement back to old location (nw) Oliver Stöneberg2015-03-201-21/+17
| | | | | also included the change from Vas to always include assert.h to protect against later rogue includes after redefinition
* Revert "If you're planning to redefine something, you should #include the ↵ Oliver Stöneberg2015-03-201-1/+0
| | | | | | definition you plan to walk over" This reverts commit 4282a7c9f201b957b34f2142746b939e02ead0a9.
* Revert "there is no way something called assert_always should ever be ↵ Oliver Stöneberg2015-03-201-33/+34
| | | | | | compiled out - people should be able to depend on side effects of something with 'always' in the name" This reverts commit 5ffe5ce5513a51e7be74a0af90556bc2fa1aab5a.
* Revert "Changing FASTDEBUG to be assert-free is too big a change to push ↵ Oliver Stöneberg2015-03-201-1/+4
| | | | | | through without public discussion" This reverts commit ca94bb7905e486fc68369893531db858645d38e7.
* Changing FASTDEBUG to be assert-free is too big a change to push through ↵ Vas Crabb2015-03-201-4/+1
| | | | without public discussion
* If you're planning to redefine something, you should #include the definition ↵ Vas Crabb2015-03-201-0/+1
| | | | you plan to walk over
* there is no way something called assert_always should ever be compiled out - ↵ Vas Crabb2015-03-201-34/+33
| | | | people should be able to depend on side effects of something with 'always' in the name
* disabled assert replacement for now since it doesn't compile anymore (nw) Oliver Stöneberg2015-03-201-0/+6
| | | | | emu_fatalerror is unknown to code in the includes / also assert_always() does nothing in non-DEBUG builds
* Fix build - come on guys, there's no way this could've possibly worked for ↵ Vas Crabb2015-03-201-4/+4
| | | | anyone
* moved assert replacement inside emucore.h so it is actually used / removed ↵ Oliver Stöneberg2015-03-201-13/+15
| | | | assert.h include from some headers and added it to lots of source
* Removed sstream include. (nw) couriersud2015-01-311-2/+0
|
* Remove inlining of non-performance relevant exceptions and fatalerror. couriersud2015-01-141-79/+4
|
* Move some includes around to fix compile errors on OSX; if this breaks any ↵ Wilbert Pol2014-12-291-0/+2
| | | | other environments then feel free to revert this. (nw)
* Fix debugger memory display of little-endian memory regions [Alex Jackson] Alex W. Jackson2014-12-091-1/+1
|
* Prevent other possible bad things happening (nw) Wilbert Pol2014-06-231-4/+20
|
* Different version of OSX segfault fix (nw) Wilbert Pol2014-06-231-10/+22
|
* That was not supposed to be in... (nw) Olivier Galibert2014-03-281-0/+4
|
* h8: Rewrite [O. Galibert] Olivier Galibert2014-03-251-4/+0
| | | (mess) mu100: Main screen turn on [O. Galibert]
* removed mame_* aliases and just use core_* functions (nw) Oliver Stöneberg2014-03-241-7/+0
|
* Moved core template container classes up from emutempl.h to coretmpl.h: Aaron Giles2014-03-111-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Aaron Giles] * these classes now no longer take a resource_pool; everything is managed globally -- this means that objects added to lists must be allocated with global_alloc * added new auto_pointer<> template which wraps a pointer and auto-frees it upon destruction; it also defaults to NULL so it doesn't need to be explicitly initialized * moved tagged_list template to tagmap.h Redo of the low-level memory tracking system: [Aaron Giles] * moved low-level tracking out of emu\emualloc into lib\util\corealloc so it can be shared among all components and used by core libraries * global_alloc and friends no longer use a resource pool to track allocations; turns out this was a wholly redundant system that wasted a lot of memory * removed global_resource_pool entirely * added global_free_array to delete arrays allocated with global_alloc_array * added tracking of object versus array allocation; we will now error if you use global_free on an array, or global_free_array on an object Added new utility helper const_string_pool which can be used to efficiently accumulate strings that are not intended to be modified. Used by updated makelist and software list code. [Aaron Giles] Updated png2bdc and makelist tools to not leak memory and use more modern techniques (no more MAX_DRIVERS in makelist, for example). [Aaron Giles] Deprecated auto_strdup and removed all uses by way of caller-managed astrings and the software list rewrite. [Aaron Giles] Rewrote software list management: [Aaron Giles] * removed the notion of a software_list that is separate from a software_list_device; they are one and the same now * moved several functions into device_image_interface since they really didn't belong in the core software list class * lots of simplification as a result of the above changes Additional notes (no whatsnew): Moved definition of FPTR to osdcomm.h. Some changes happened in the OSD code to fix issues, especially regarding freeing arrays. SDL folks may need to fix up some of these. The following devices still are using tokens and should be modernized (I found them because they kept their token as void * and tried to delete it, which you can't): namco_52xx_device (mame/audio/namco52.c) namco_54xx_device (mame/audio/namco54.c) namco_06xx_device (mame/machine/namco06.c) namco_50xx_device (mame/machine/namco50.c) namco_51xx_device (mame/machine/namco51.c) namco_53xx_device (mame/machine/namco53.c) voodoo_device (emu/video/voodoo.c) mos6581_device (emu/sound/mos6581.c) aica_device (emu/sound/aica.c) scsp_device (emu/sound/scsp.c) dmadac_sound_device (emu/sound/dmadac.c) s3c2440_device (emu/machine/s3c2440.c) wd1770_device (emu/machine/wd17xx.c) latch8_device (emu/machine/latch8.c) duart68681_device (emu/machine/68681.c) s3c2400_device (emu/machine/s3c2400.c) s3c2410_device (emu/machine/s3c2410.c) strataflash_device (mess/machine/strata.c) hd63450_device (mess/machine/hd63450.c) tap_990_device (mess/machine/ti99/990_tap.c) omti8621_device (mess/machine/omti8621.c) vdt911_device (mess/video/911_vdt.c) apollo_graphics_15i (mess/video/apollo.c) asr733_device (mess/video/733_asr.c)
* rest of ATTR_PRINTF review (nw) Oliver Stöneberg2014-02-251-2/+2
|