Repository navigation
v0.2.219
PB64Basic Enhanced v0.2.219 - batch 439.
See the full changelog in README.md
batch 439 (v0.2.219) - the documented default subsystem now matches what the compiler has always emitted and what PB/Win 10 produces: a source with no
#COMPILE/#CONSOLEdirective becomes a Windows GUI EXE (PE subsystem 2), so#CONSOLE ONis this fork's extension - PB/Win 10 rejects it withError 418 Statement expected- and--consolestill overrides the source.
- Docs (
README.md,?shorthand): a bare?maps toMSGBOX(GUI, same as PB/Win 10),#CONSOLE ONmaps toCON.PRINT,#COMPILER PBCCtoCON.PRINTand#COMPILER PBWINtoMSGBOX. The paragraph now states the measured PB/Win 10 subsystem (2), records that#CONSOLE ONfails there withError 418, and removes the old claim thatPRINTis redirected topb_debug.logwhen no console exists - the text is discarded. - Compiler (
pbcompiler/src/codegen.rs):CompilercountsPRINTstatements compiled whileconsole_modeis false (gui_print_count) and, after the per-function warning pass, prints[PB64Basic] WARNING: N PRINT statement(s) compiled into a Windows GUI EXE; there is no console to receive the output. Add "#CONSOLE ON" to the source (or pass --console) to link a console EXE. - Evidence (Windows, clang/MSVC, x86_64-pc-windows-msvc):
plain.bas(no directive, onePRINT) -> warning printed once, PE subsystem 2, runs with exit 0;cons.bas(#CONSOLE ON) -> no warning, subsystem 3;plain.bas --console-> no warning, subsystem 3. PB/Win 10 10.04 on the same no-directive source -> subsystem 2; the same source with#CONSOLE ON->Error 418 Statement expectedon that line. - Test:
examples/batch439_test.basbuilds through#CONSOLE ON, obtainsSTD_OUTPUT_HANDLEand runs thePRINTpath to completion (FAILURES: 0).