Export reference parameters as C++ references, not pointers.
This commit is contained in:
@@ -87,7 +87,7 @@ int main(int argc, char** argv) {
|
|||||||
framebuffer.clear();
|
framebuffer.clear();
|
||||||
reset_and_start_timer();
|
reset_and_start_timer();
|
||||||
for (int j = 0; j < nframes; ++j)
|
for (int j = 0; j < nframes; ++j)
|
||||||
ispc::RenderStatic(&input->header, &input->arrays,
|
ispc::RenderStatic(input->header, input->arrays,
|
||||||
VISUALIZE_LIGHT_COUNT,
|
VISUALIZE_LIGHT_COUNT,
|
||||||
framebuffer.r, framebuffer.g, framebuffer.b);
|
framebuffer.r, framebuffer.g, framebuffer.b);
|
||||||
double mcycles = get_elapsed_mcycles() / nframes;
|
double mcycles = get_elapsed_mcycles() / nframes;
|
||||||
|
|||||||
2
type.cpp
2
type.cpp
@@ -2554,7 +2554,7 @@ ReferenceType::GetCDeclaration(const std::string &name) const {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::string ret;
|
std::string ret;
|
||||||
ret += targetType->GetCDeclaration("") + std::string(" *");
|
ret += targetType->GetCDeclaration("") + std::string(" &");
|
||||||
if (lShouldPrintName(name))
|
if (lShouldPrintName(name))
|
||||||
ret += name;
|
ret += name;
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user