Menu

[025cc2]: / DirectPython11 / stdafx.cpp  Maximize  Restore  History

Download this file

25 lines (18 with data), 498 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
Copyright (C) 2010, Heikki Salo
All rights reserved.
Distributed under the BSD license:
http://www.opensource.org/licenses/bsd-license.php
*/
#include "stdafx.h"
extern PyObject* dpExeception;
void DPThrow(const char* message)
{
PyErr_SetString(dpExeception, message);
python::throw_error_already_set();
}
void DPThrow(HRESULT hr)
{
const char* message = DXGetErrorDescriptionA(hr); // DXGetErrorStringA(hr);
DPThrow(message);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.