jamesjuett / lobster

Interactive Program Visualization Tools
8 stars 3 forks source link

Bug: Local Function Declarations #334

Open jamesjuett opened 2 years ago

jamesjuett commented 2 years ago

The visualization crashes on local function declarations. There's a TODO in the source about it.

// TODO: add support for other kinds of declarations that aren't variable definitions

Repro:

#include <iostream>

using namespace std;

int main () {
    int blah();
}

int blah() {
    return 2;
}