Commit Graph

141 Commits

Author SHA1 Message Date
kamgha c2866ea4ed Fix includes for Windows on case-sensitive filesystems
Closes #866
2020-02-22 12:55:45 +01:00
rdb 97d4e32a06 general: use nassert_raise instead of nassertv(false) et al
Even a brief error message in the assertion is infinitely more useful to a user who is not at home in the source code, especially for assertions that may reasonably be triggered by honest user mistakes.
2018-11-28 17:35:20 +01:00
rdb 88b0f3327d Warning fixes and cleanups when building with SIMPLE_THREADS 2018-10-16 21:32:42 +02:00
Sam Edwards 4695557a5d general: Don't require BUILDING_* for static builds 2018-08-31 23:54:32 -06:00
Sam Edwards b2bfb31114 general: Remove `using std::*` from headers
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.

Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards 7790f8429d general: Fully qualify header references into the std namespace
Closes #341
2018-06-07 10:35:12 +02:00
Sam Edwards e2b4353800 general: Replace NULL (and 0 as pointer) with C++11 nullptr
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
rdb e0245d2777 First step towards eliminating `using namespace std;` (#335) 2018-06-03 20:32:23 +02:00
rdb de6d753f79 net: don't use get_message() when constructing datagram header
This is causing an unnecessary copy operation.
2018-04-06 17:17:04 +02:00
Sam Edwards 9dd37e9dbc general: Add guards to ensure proper BUILDING_ macros defined
This is designed to sanity-check the buildsystem, ensuring that the
expected BUILDING_ macros are defined at the expected time. It
also helps catch cases where the wrong BUILDING_/EXPCL_ macros
are used.
2018-03-25 13:17:52 -06:00
rdb e301e5fe5e android: fix various compilation errors 2018-01-29 19:36:51 +01:00
rdb dd2806c8bd Mark constructors 'explicit' for which coercion makes no sense 2017-11-06 19:47:38 +01:00
rdb 7e08b87ff7 IPv6 support, improve URL handling/comparison 2016-06-22 17:57:40 +02:00
rdb 18874fa151 Replace PN_int/uint types with stdint.h types, since all compilers we support have them.
Plus, we already had code that relied on them being available anyway.
2016-05-11 00:27:58 +02:00
rdb ce29ae490d Interrogate improvements, more properties, MAKE_SEQ_PROPERTY 2016-05-11 00:16:53 +02:00
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb 090e912ce6 Cleanup of comments and whitespace 2016-02-01 22:30:43 +01:00
rdb db3ab953e4 Remove ppremake, genPyCode, and all hacks created to support them 2015-11-09 19:06:49 +01:00
rdb ebd1fd8462 Fix interrogate warnings on Windows. Show warnings when running makepanda in verbose mode. 2015-10-17 03:27:38 +02:00
rdb ddf8343590 Reorganise explicit template instantiations so that it always happens in the .cxx file, while remaining backward compatible with MSVC's standards-breaking implementation 2015-10-16 15:38:28 +02:00
rdb 920210c999 Fix the vast majority of Interrogate parse issues and warnings, add support for inline namespace and constexpr 2015-10-16 14:57:40 +02:00
rdb cbd70ad8af Move all Python bindings out of core DLLs into the .pyd files. 2015-02-10 14:30:51 +01:00
rdb 241adfe34d Implement comparison and hashing in NetAddress. Clean up Socket_Address code a bit. 2014-10-27 12:09:56 +00:00
rdb a65b477734 Commit patches by cfsworks:
cxx: Fix missing includes masked by composite builds.
misc: Fix typos in comments.
config: Fix missing config forward-declarations.
direct: Adjust Python imports to panda3d.* instead of pandac.*.
display: Split graphicsWindow out into an extension.
framework: Use if/elif/elif/endif instead of ifdef/elif/elif/endif.
ode: Remove erroneous INLINE declarations.
interval: Fix missing import.
2014-10-19 22:41:47 +00:00
rdb 0a84dd9ca3 Android fixes 2014-10-06 17:44:58 +00:00
rdb 8992801b24 Don't use 'interface' as variable name, it conflicts with a built-in declaration in gcc 2013-09-01 07:15:57 +00:00
David Rose c50dcd9195 get_mac_address() 2013-03-22 21:36:40 +00:00
David Rose 517ab5d56f properly filter disconnected interfaces on win32 2013-03-14 18:59:53 +00:00
David Rose ac9def42f6 stupid win32 namespace collision 2013-03-14 17:15:33 +00:00
David Rose 89543ada42 get_interfaces() for win32 2013-03-14 16:30:04 +00:00
David Rose d51a48acca work in progress: get_interfaces() 2013-03-14 13:27:51 +00:00
David Rose d52e2a9ea9 support UDP broadcast 2013-02-21 17:33:51 +00:00
David Rose 78abcf23e7 ConnectionManager::wait_for_readers() 2012-02-03 19:58:08 +00:00
David Rose 622c047344 several USE_PACKAGES oopses 2011-12-12 22:53:39 +00:00
David Rose dfe16c64f6 rename all Panda-built libraries to begin with libp3 or libpanda 2011-12-06 02:39:21 +00:00
David Rose 921e6946c9 fix identification of failed TCP connection 2011-11-28 22:04:45 +00:00
David Rose 0cf03bc158 untabify 2011-06-29 22:09:10 +00:00
Chris Brunner 547a72053c support for #ifdef WIN64_VC instead of just #ifdev WIN32_VC alone 2010-05-28 21:09:22 +00:00
David Rose 539737278b blocking methods 2009-12-19 06:37:17 +00:00
David Rose 265dfba3ad name threads 2009-12-16 17:27:19 +00:00
David Rose 2773e08b5a default thread priority should be TP_low for readers and writers 2009-12-05 22:35:15 +00:00
David Rose b7fdc8d797 tag a few more methods BLOCKING 2009-12-05 19:37:17 +00:00
David Rose 7ed5437e15 expose shutdown() 2009-12-05 07:17:11 +00:00
David Rose e86f48a210 attempt to smooth out threaded network layer 2009-12-05 07:01:36 +00:00
David Rose f4ed61f659 support listening on a specific interface 2009-12-01 01:34:02 +00:00
David Rose 6e33ac4513 tcp_header_size, some threading issues 2009-11-14 23:27:09 +00:00
David Rose aee00fc3de pstrtod 2009-06-14 16:27:44 +00:00
David Rose aefe3d35c2 merge dev_bam_2009 to trunk 2009-06-10 17:54:40 +00:00
David Rose 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) 2009-06-01 21:51:15 +00:00
David Rose 97949f7d0d fix lost message(s) at connection lost 2009-03-26 18:33:34 +00:00