Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace throw with assert if -fno-exceptions #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GIldons
Copy link

@GIldons GIldons commented Nov 29, 2022

On systems with exception disabled current code is not able to compile.
Replace throw with assert in such systems.

@jimemo
Copy link

jimemo commented Jan 11, 2023

This problem exists when compiling in VSCode/PlatformIO.
Workaround:

  1. Edit cpp-base64\base64.cpp, within function pos_of_char()
    Comment out:
    throw std::runtime_error("Input is not valid base64-encoded data.");
    Add:
    return 0;
  2. Delete cpp-base64\test.cpp and cpp-base64\test-google.cpp

Apart from that it works great.

ScrelliCopter added a commit to ScrelliCopter/tmx2gba that referenced this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants