From 55b8ca317ab1f77850f498c1523355e1f5dd8d03 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 15 Nov 2020 03:53:47 +1100 Subject: -Switch to building MAME as C++17. * Updated sol2 to 3.2.2 * Updated pugixml to 1.10 * Increased minimum clang version to 6 * Cleaned up some stuff that can use new features --- 3rdparty/sol2/examples/variables.cpp | 37 ------------------------------------ 1 file changed, 37 deletions(-) delete mode 100644 3rdparty/sol2/examples/variables.cpp (limited to '3rdparty/sol2/examples/variables.cpp') diff --git a/3rdparty/sol2/examples/variables.cpp b/3rdparty/sol2/examples/variables.cpp deleted file mode 100644 index ece88915703..00000000000 --- a/3rdparty/sol2/examples/variables.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include - -int main() { - std::cout << "=== variables example ===" << std::endl; - - sol::state lua; - - // need the base library for assertions - lua.open_libraries(sol::lib::base); - - // basic setting of a variable - // through multiple ways - lua["x"] = 10; - lua.set("y", "hello"); - - // assert values are as given - lua.script("assert(x == 10)"); - lua.script("assert(y == 'hello')"); - - - // basic retrieval of a variable - // through multiple ways - int x = lua["x"]; - auto y = lua.get("y"); - - int x2; - std::string y2; - std::tie(x2, y2) = lua.get("x", "y"); - - // show the values - std::cout << x << std::endl; - std::cout << y << std::endl; - std::cout << x2 << std::endl; - std::cout << y2 << std::endl; - std::cout << std::endl; -} \ No newline at end of file -- cgit v1.2.3-70-g09d2 '>new_menus MAME - Multiple Arcade Machine Emulator
summaryrefslogtreecommitdiffstatshomepage
Commit message (Expand)AuthorAgeFilesLines
* Rearrange source to match project structure (done using the script in src/too... Vas Crabb2022-06-271-449/+0
* - Removed device_timer, device_timer_id, et al in favor of direct callback me... MooglyGuy2022-06-041-0/+3
* Future-proofing by using correct #include for SOFTWARE_LIST device AJR2022-01-031-1/+1
* floppies: Turn the format arrays into function calls. Create a default "mfm"... Olivier Galibert2021-03-021-3/+5
* eolith, gameplan.cpp, jr100, lisa, model1, opwolf, pcw, peyper, pinball2k, po... Ivan Vangelista2020-11-041-0/+1
* (nw) Clean up the mess on master Vas Crabb2019-03-261-31/+30
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-30/+31
* (nw) sorry, take 2 Ivan Vangelista2019-02-251-12/+12
* emu\softlist_dev: removed MCFG macros (nw) Ivan Vangelista2019-01-301-3/+4
* imagedev\floppy: removed MCFG macros (nw) Ivan Vangelista2019-01-281-8/+7
* src/devices: a bit more MCFG macro removal (nw) Ivan Vangelista2019-01-181-2/+1
* src/devices: some more MCFG macros removal (nw) Ivan Vangelista2019-01-111-6/+6
* machine/keyboard, terminal: removed MCFG macros (nw) Ivan Vangelista2018-12-111-2/+2
* wd_fdc: removed MCFG macros (nw) Ivan Vangelista2018-09-061-3/+3
* k033906,k053252,k054321,k056230,kb3600,kr2376: De-MCFG, nw mooglyguy2018-09-051-12/+12
* -ram_device: MCFG removal, nw mooglyguy2018-08-161-5/+2
* -bankdev: Remove MCFG, nw mooglyguy2018-08-151-6/+1
* -poly: Fix recent regression, nw mooglyguy2018-08-121-1/+1
* -68230pit, 68307, 68340, 6840ptm, 6850acia, 68561mpcc: Removed MCFG macros an... mooglyguy2018-08-111-9/+9
* -pia6821: Removed MCFG and old devcb. [Ryan Holtz] mooglyguy2018-08-101-9/+9
* -8042kbdc, mb89352, mc6854: Removed legacy devcb accessors. [Ryan Holtz] mooglyguy2018-07-311-3/+3
* devcb3 Vas Crabb2018-07-071-5/+4
* as if millions of this pointers suddenly cried out in terror, and were sudden... Vas Crabb2018-06-081-10/+10
* Move the +1 to the proper place in the ROM BIOS macros - that's been Vas Crabb2018-05-291-27/+28
* wd_fdc family, msm5832: Eliminate customized MCFG_XXX_ADD macros (nw) AJR2018-05-271-1/+1
* poly.cpp: Use original encrypted ROMs, and decrypt. Nigel Barnes2018-05-251-139/+359
* Removed DRIVER_INIT-related macros, made driver init entry in GAME/COMP/CONS ... MooglyGuy2018-05-131-2/+2
* dsp16: fix condition mask in disassembler (nw) Vas Crabb2018-05-091-1/+1
* Streamline machine configuration macros - everyone's a device edition. Vas Crabb2018-05-061-11/+11
* Address maps macros removal, pass 1 [O. Galibert] Olivier Galibert2018-03-141-19/+20
* 6840ptm: Counter/timers are numbered from 1 to 3, not 0 to 2 as with 8253 (nw) AJR2018-02-201-2/+2
* API change: Memory maps are now methods of the owner class [O. Galibert] Olivier Galibert2018-02-121-1/+2
* xtal.h is dead, long live to xtal.cpp [O. Galibert] Olivier Galibert2018-01-231-3/+3
* API Change: Machine configs are now a method of the owner class, and the prot... Olivier Galibert2018-01-171-1/+2
* Revert "Revert "Merge branch 'master' of https://github.com/mamedev/mame"" Firehawke2017-12-131-1/+1
* Revert "Merge branch 'master' of https://github.com/mamedev/mame" Firehawke2017-12-131-1/+1
* m6809: Start resolving the great device type/clock divider mix-up AJR2017-12-081-1/+1
* acia6850: Create standard read/write handlers (nw) AJR2017-12-011-2/+1
* poly.cpp: Define XTAL (nw) AJR2017-10-281-3/+3
* poly1: Add software-selected baud rate divider (nw) AJR2017-10-271-4/+14
* (nw) removed some trampolines Robbbert2017-09-301-20/+11
* Move static data out of devices into the device types. This is a significant... Vas Crabb2017-05-141-6/+6
* Self-registering devices prep: Vas Crabb2017-02-271-2/+5
* Cleanup of my drivers (nw) Robbbert2017-01-071-3/+1
* 6840ptm: use standard device clock for internal clock Dirk Best2016-12-041-2/+1
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-3/+3
* -6840ptm: Changed WRITE8 to WRITE_LINE for single-bit outputs. [Ryan Holtz] therealmogminer@gmail.com2016-10-031-8/+8