Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
abaeee68
Commit
abaeee68
authored
Oct 03, 2010
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error in vc9: use _wassert instead of _assert, the latter no longer exists.
parent
4ec3efcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/main.cpp
src/main.cpp
+5
-6
No files found.
src/main.cpp
View file @
abaeee68
...
@@ -275,15 +275,14 @@ void MSE::HandleEvent(wxEvtHandler *handler, wxEventFunction func, wxEvent& even
...
@@ -275,15 +275,14 @@ void MSE::HandleEvent(wxEvtHandler *handler, wxEventFunction func, wxEvent& even
#if defined(_MSC_VER) && defined(_DEBUG)
#if defined(_MSC_VER) && defined(_DEBUG)
// Print assert failures to debug output
// Print assert failures to debug output
void
msvc_assert
(
const
char
*
,
const
char
*
,
const
char
*
,
unsigned
);
void
MSE
::
OnAssert
(
const
wxChar
*
file
,
int
line
,
const
wxChar
*
cond
,
const
wxChar
*
msg
)
{
void
MSE
::
OnAssert
(
const
wxChar
*
file
,
int
line
,
const
wxChar
*
cond
,
const
wxChar
*
msg
)
{
#ifdef UNICODE
#ifdef UNICODE
char
file_
[
1024
];
wcstombs
(
file_
,
file
,
1023
);
char
cond_
[
1024
];
wcstombs
(
cond_
,
cond
,
1023
);
char
msg_
[
1024
];
wcstombs
(
msg_
,
msg
,
1023
);
msvc_assert
(
msg_
,
cond_
,
file_
,
line
);
#else
msvc_assert
(
msg
,
cond
,
file
,
line
);
msvc_assert
(
msg
,
cond
,
file
,
line
);
#else
wchar_t
file_
[
1024
];
mbstowcs
(
file_
,
file
,
1023
);
wchar_t
cond_
[
1024
];
mbstowcs
(
cond_
,
cond
,
1023
);
wchar_t
msg_
[
1024
];
mbstowcs
(
msg_
,
msg
,
1023
);
msvc_assert
(
msg_
,
cond_
,
file_
,
line
);
#endif
#endif
}
}
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment