Skip to content

Commit

Permalink
Debug code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Dec 25, 2024
1 parent d9d7c58 commit 3c39542
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/errors/exception.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <alloca.h>
#ifndef WIN32
#include <unistd.h>
#include <alloca.h>
#else
// #include <io.h>
#endif
Expand Down
8 changes: 8 additions & 0 deletions compiler/generator/cpp/cpp_code_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ dsp_factory_base* CPPCodeContainer::produceFactory()
stacktrace(str, 50);
std::cerr << str.str() << std::endl;
std::cout << str.str() << std::endl;

std::cerr << "fOut " << fOut << std::endl;
std::cout << "fOut " << fOut << std::endl;
if (fOut) {
std::cerr << " typeid(*fOut).name() " << typeid(*fOut).name() << std::endl;
std::cout << " typeid(*fOut).name() " << typeid(*fOut).name() << std::endl;
}

return new text_dsp_factory_aux(
fKlassName, "", "",
((dynamic_cast<ostringstream*>(fOut)) ? dynamic_cast<ostringstream*>(fOut)->str() : ""),
Expand Down
3 changes: 3 additions & 0 deletions compiler/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,10 @@ void callFun(threaded_fun fun, void* arg)
// No thread support in JavaScript
fun(arg);
#else
/*
std::thread t(fun, arg);
t.join();
*/
fun(arg);
#endif
}

0 comments on commit 3c39542

Please sign in to comment.