Skip to content

Commit 71852b1158f5e833db49bbbe19bd34dfb4fe0a61 broke tutorial https://pybindgen.readthedocs.io/en/latest/tutorial/#header-file-scanning #49

@pbower

Description

@pbower

Hi ,

This is a courtesy to let you know that commit 71852b1 with the gccxml replacement appears to have broken the PyBindGen tutorial listed at https://pybindgen.readthedocs.io/en/latest/tutorial/#header-file-scanning

with its accompanying code below:

#! /usr/bin/env python

import sys

import pybindgen
from pybindgen import FileCodeSink
from pybindgen.gccxmlparser import ModuleParser

def my_module_gen():
module_parser = ModuleParser('a1', '::')
module = module_parser.parse([sys.argv[1]])
module.add_include('"a.h"')

pybindgen.write_preamble(FileCodeSink(sys.stdout))
module.generate(FileCodeSink(sys.stdout))

if name == 'main':
my_module_gen()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions