mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-16 10:44:31 +02:00
Update to v094r06 release.
byuu says: New terminal is in. Much nicer to use now. Command history makes a major difference in usability. The SMP is now fully traceable and debuggable. Basically they act as separate entities, you can trace both at the same time, but for the most part running and stepping is performed on the chip you select. I'm going to put off CPU+SMP interleave support for a while. I don't actually think it'll be too hard. Will get trickier if/when we support coprocessor debugging. Remaining tasks: - aliases - hotkeys - save states - window geometry Basically, the debugger's done. Just have to add the UI fluff. I also removed tracing/memory export from higan. It was always meant to be temporary until the debugger was remade.
This commit is contained in:
@@ -93,16 +93,16 @@ inline int64_t evaluateInteger(Node* node) {
|
||||
throw "invalid operator";
|
||||
}
|
||||
|
||||
inline optional<int64_t> integer(const string& expression) {
|
||||
inline maybe<int64_t> integer(const string& expression) {
|
||||
try {
|
||||
auto tree = new Node;
|
||||
const char* p = expression;
|
||||
parse(tree, p, 0);
|
||||
auto result = evaluateInteger(tree);
|
||||
delete tree;
|
||||
return {true, result};
|
||||
return result;
|
||||
} catch(const char*) {
|
||||
return false;
|
||||
return nothing;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,16 +138,16 @@ inline long double evaluateReal(Node* node) {
|
||||
throw "invalid operator";
|
||||
}
|
||||
|
||||
inline optional<long double> real(const string& expression) {
|
||||
inline maybe<long double> real(const string& expression) {
|
||||
try {
|
||||
auto tree = new Node;
|
||||
const char* p = expression;
|
||||
parse(tree, p, 0);
|
||||
auto result = evaluateReal(tree);
|
||||
delete tree;
|
||||
return {true, result};
|
||||
return result;
|
||||
} catch(const char*) {
|
||||
return false;
|
||||
return nothing;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user