zeek/auxil/libunistd/portable/Breakpoint.h
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

32 lines
460 B
C

// portable/Breakpoint.h
// Created by Robin Rowe on 6/30/2015.
// Copyright (c) 2015 Robin.Rowe@CinePaint.org. All rights reserved.
//
#if defined(_DEBUG) && defined(_WIN32)
#include <Windows.h>
inline
void Breakpoint()
{ DebugBreak();
}
#else
inline
void Breakpoint()
{}
/* How to breakpoint a cgi-bin:
#include "<portable/Breakpoint.h>
int main()
{ Breakpoint();//Launches VC++ and stops on bp here
.
. // your stuff...
.
return 0;
}
*/
#endif