mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 19:03:45 +00:00
samples/c_interface/*:
Replace left over references to the old c_header_code pragma.
Replace some uses of '__' as a module qualifier.
Replace tabs with spaces.
Add some missing words.
15 lines
273 B
C++
15 lines
273 B
C++
// This source file is hereby placed in the public domain. -fjh (the author).
|
|
|
|
#include <iostream>
|
|
|
|
#include "cpp_main.h"
|
|
|
|
// Use some C++ features
|
|
class Foo { };
|
|
|
|
void cpp_main(void) {
|
|
Foo *p = new Foo;
|
|
std::cout << "In cpp_main()." << std::endl;
|
|
delete p;
|
|
}
|