summaryrefslogtreecommitdiffhomepage
path: root/compat
AgeCommit message (Collapse)Author
2017-03-30compat/util: add macro for warning onceStanislaw Halik
2017-03-28compat, options: remove explicit template instantiationStanislaw Halik
It breaks on GNU and saves little space.
2017-03-28start renaming internal macros as OPENTRACK_* to OTR_*Stanislaw Halik
2017-03-27cmake: rename project's function prefixStanislaw Halik
It's not annoying having to type it anymore. Also "otr_boilerplate" -> "otr_module".
2017-03-24compat/util: add define for never_inlineStanislaw Halik
2017-03-24options, compat: instantiate common templates in their .dll'sStanislaw Halik
2017-03-22compat/nan: support for mingw-w64 in a hacky wayStanislaw Halik
2017-03-22compat/shm: decruftStanislaw Halik
2017-03-22compat/timer: accidental pragma onceStanislaw Halik
2017-03-21compat/timer: move from header. simplifyStanislaw Halik
It was getting inlined in each compilation unit.
2017-03-20compat/sleep: guard against signed -> unsigned wraparoundStanislaw Halik
2017-03-17compat/util: remove our make_unique custom implStanislaw Halik
2017-02-27remove unfinished polish translation filesStanislaw Halik
Polish speakers typically know English well enough and translations are awkward.
2017-02-25contrib/util: add more unused attribute macrosStanislaw Halik
2017-02-21modules: add .ts filesStanislaw Halik
2016-12-31compat/timer: prevent races in initializing timer resolutionStanislaw Halik
Also, - don't lose high bits with cast from long long to long on _WIN32. - reduce #define pollution
2016-12-30compat: prevent deadlock with raceStanislaw Halik
We can't depend on cvar getting notified only after "src" runs out of scope. Now, in case signal destroyed() runs first: - mtx locked - flag set to true - empty cvar notified Thus, doesn't hang. In case we wait first: - mtx locked - flag is false - cvar notification arrives Of course semaphore code always runs serially since they're covered by a mutex. We have all our bases covered. Previously the code never hung simply because the "curthread" condition was always true. I removed the "curthread" code paths since they don't add anything. Also rvalue references got used incorrectly.
2016-12-30compat: remove empty translation unitStanislaw Halik
2016-12-16compat/util: implicitly include QDebug to every calleeStanislaw Halik
2016-12-08fix buildStanislaw Halik
Spotted-by: @MrSanchos
2016-12-03compat: add assertsStanislaw Halik
2016-12-03fixup! tracker/{aruco,pt}: use RAII for QObjectStanislaw Halik
2016-12-03compat: avoid namespace clashesStanislaw Halik
2016-11-29compat/run-in-thread: fix on msvc 2017Stanislaw Halik
2016-11-12compat: move from simple-mat.hpp to euler.hppStanislaw Halik
2016-11-05delete empty .tsStanislaw Halik
2016-11-04modules: add autogenerated translation filesStanislaw Halik
2016-11-03move simple-mat from logic to compat to simplify dependenciesStanislaw Halik
2016-10-26compat/util: split out run-in-thread{,-async}Stanislaw Halik
2016-10-26compat/util: introduce "iround" for round to integerStanislaw Halik
2016-10-26compat/util: move stuff aroundStanislaw Halik
2016-10-23compat/util: these type params are unusedStanislaw Halik
2016-10-20compat/nan: fix isnan in presence of -ffast-mathStanislaw Halik
The trick prevents GCC isnan builtin from getting called.
2016-10-19compat, tracker/pt: add warn_unused_result compat macroStanislaw Halik
2016-10-19compat/util: fix conversion from value<t> for clampStanislaw Halik
2016-09-21many: remove compat/pi-constant.hppStanislaw Halik
With -D_USE_MATH_DEFINES MSVC defines the standard M_PI and friends. Since this preprocessor definition is now always passed as part of the build system for MSVC. We can use M_PI as if on a mission.
2016-09-20compat/timer: no exports hereStanisław Halik
2016-09-16compat, dinput: don't overdo COM logicStanislaw Halik
2016-09-16compat/util: replace with QSignalBlocker usagesStanislaw Halik
2016-09-09compat/win32-com: switch to always apartment threadedStanislaw Halik
2016-09-08compat: remove empty sourcesStanislaw Halik
2016-08-23compat/util: move typical "clamp" function hereStanislaw Halik
2016-08-23cmake: refactor boilerplate for projectsStanislaw Halik
Don't rely on a macro that shouldn't be necessary. The information "opentrack_boilerplate" retrieves is now factored out to be easily available to projects themselves. opentrack_boilerplate can now also build executables. When appropriate, target properties are now concatenated rather than replaced.
2016-08-23compat/util: add time-saving inhibit_qt_signals overloadsStanislaw Halik
2016-08-17compat/win32-com: default to right COM type without caller specifying itStanislaw Halik
The main window always needs the apartment threaded context for OLE used by Qt. Default to apartment threaded before a QApplication is created, or if the thread is the QApplication thread. Use multithreaded COM otherwise.
2016-08-17move options framework into its own libraryStanislaw Halik
- adjust usages - add support for QList signals and metatype
2016-08-16compat/util: add robust way to block qt signalsStanislaw Halik
2016-08-16compat/options: anon namespace classes are usable so move to detailStanislaw Halik
2016-08-16compat/options: unindent inside namespace onlyStanislaw Halik
2016-08-16compat/options: qDebug() in singleton dtorStanislaw Halik
This singleton is used around the codebase so make its lifetime clear to the developer.