]> granicus.if.org Git - python/commit
Included assert.h in Python.h -- it's absurd that this basic tool of
authorTim Peters <tim.peters@gmail.com>
Sun, 23 Jul 2000 19:28:35 +0000 (19:28 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 23 Jul 2000 19:28:35 +0000 (19:28 +0000)
commit8315ea579046727bb234dc4692ca28c8514eacbe
treed1b2e26eb953b19ee6c753e4842f604becf76fc1
parente21107145aed5b9bfeeb2f2d5f76944288c1dc07
Included assert.h in Python.h -- it's absurd that this basic tool of
good C practice hasn't been available to everything all along.
Added Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) macro to pyport.h; this
just casts VALUE from type WIDE to type NARROW, but assert-fails if
Py_DEBUG is defined and info is lost due to casting.
Replaced a line in Fredrik's fix to marshal.c to use the new macro.
Include/Python.h
Include/pyport.h
Python/marshal.c